Skip to content

Commit

Permalink
Update condition of reset-jobs job
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Dec 19, 2024
1 parent 2be471a commit 8a722ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-hubs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,11 @@ jobs:
runs-on: ubuntu-latest
needs: [generate-jobs, filter-failed-support]
if: |
!cancelled()
!cancelled() &&
(github.event_name == 'push' && contains(github.ref, 'main')) &&
needs.generate-jobs.result == 'success' &&
needs.generate-jobs.outputs.staging-jobs != '[]' &&
needs.generate-jobs.outputs.prod-jobs != '[]'
outputs:
staging-jobs: ${{ steps.reset-jobs.outputs.staging-jobs }}
prod-jobs: ${{ steps.reset-jobs.outputs.prod-jobs }}
Expand Down

0 comments on commit 8a722ac

Please sign in to comment.