Skip to content

Commit

Permalink
trying...
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp committed Apr 4, 2024
1 parent 22b5f72 commit 10722c2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ env:
repo_builds: bcgov/quickstart-openshift

jobs:
deploys:
deployments:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
backend_triggered: ${{ steps.is_triggered.outputs.backend.triggered }}
frontend_triggered: ${{ steps.is_triggered.outputs.frontend.triggered }}
database_triggered: ${{ steps.is_triggered.outputs.database.triggered }}
backend_triggered: ${{ steps.is_triggered.outputs.backend_triggered }}
frontend_triggered: ${{ steps.is_triggered.outputs.frontend_triggered }}
database_triggered: ${{ steps.is_triggered.outputs.database_triggered }}
strategy:
matrix:
name: [ database, backend, frontend ]
Expand All @@ -29,7 +29,7 @@ jobs:
file: templates/backend.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
penetration_test: true
penetration_test: false
verification_path: /api
- name: frontend
file: templates/frontend.yml
Expand Down Expand Up @@ -60,16 +60,17 @@ jobs:
- name: Triggered
id: is_triggered
run: |
echo "${{ matrix.name }}.triggered=${{ steps.deploys.outputs.triggered }}" >> $GITHUB_OUTPUT
echo "${{ matrix.name }}_triggered=${{ steps.deploys.outputs.triggered }}" >> $GITHUB_OUTPUT
results:
runs-on: ubuntu-latest
needs: deploys
needs: [deployments]
steps:
- uses: actions/checkout@v4
- name: Results
run: |
echo "Database triggered: ${{needs.deploys.outputs.database_triggered}}"
echo "Backend triggered: ${{needs.deploys.outputs.backend_triggered}}"
echo "Frontend triggered: ${{needs.deploys.outputs.frontend_triggered}}"
echo results: ${{ toJson(needs.deployments) }}
echo "Database triggered: ${{needs.deployments.outputs.database_triggered}}"
echo "Backend triggered: ${{needs.deployments.outputs.backend_triggered}}"
echo "Frontend triggered: ${{needs.deployments.outputs.frontend_triggered}}"

0 comments on commit 10722c2

Please sign in to comment.