Skip to content

Commit

Permalink
ci: PR Results gate (#1332)
Browse files Browse the repository at this point in the history
Add PR Results gate to workflow
  • Loading branch information
DerekRoberts authored Nov 25, 2024
1 parent d2ac1eb commit 5d8c35d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -576,3 +576,13 @@ jobs:
oc login --token=${{ secrets.OC_TOKEN }} --server=${{ secrets.OC_SERVER }}
oc project ${{ secrets.OC_NAMESPACE }} # Safeguard!
oc scale dc/nr-forest-client-${{ github.event.number }}-legacy --replicas=1
results:
name: PR Results
needs: [builds, pre-tools, deploy-tools, deploy, cypress-run, scale-down-after, recreate-database, scale-up-legacy]
if: always()
runs-on: ubuntu-24.04
steps:
- if: contains(needs.*.result, 'failure')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"
5 changes: 4 additions & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
results:
name: Validate Results
needs: [changelog, validate]
if: always()
runs-on: ubuntu-24.04
steps:
- run: echo "Workflow completed successfully!"
- if: contains(needs.*.result, 'failure')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"

0 comments on commit 5d8c35d

Please sign in to comment.