1111 - cron : ' 0 2-6 * * *'
1212
1313concurrency :
14- group : ${{ github.workflow }}-${{ github.ref }}
14+ group : ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.sha || github.ref }}
1515 cancel-in-progress : ${{ !(contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/stable')) }}
1616
1717jobs :
@@ -470,30 +470,9 @@ jobs:
470470 - name : Check workflow files
471471 run : ${{ steps.download-actionlint.outputs.executable }} -color -config-file .github/actionlint.yaml
472472 shell : bash
473- all-jobs-pass-merge-pr :
474- name : All jobs pass
475- runs-on : ubuntu-latest
476- if : ${{ github.event_name != 'merge_group' }}
477- needs :
478- [
479- check-diff,
480- dedupe,
481- scripts,
482- unit-tests,
483- check-workflows,
484- js-bundle-size-check,
485- sonar-cloud-quality-gate-status,
486- ]
487- outputs :
488- ALL_JOBS_PASSED : ${{ steps.jobs-passed-status.outputs.ALL_JOBS_PASSED }}
489- steps :
490- - name : Set jobs passed status
491- id : jobs-passed-status
492- run : echo "ALL_JOBS_PASSED=true" >> "$GITHUB_OUTPUT"
493473 all-jobs-pass :
494- name : All jobs pass (merge_group)
474+ name : All jobs pass
495475 runs-on : ubuntu-latest
496- if : ${{ github.event_name == 'merge_group' }}
497476 needs :
498477 [
499478 check-diff,
@@ -510,19 +489,19 @@ jobs:
510489 - name : Set jobs passed status
511490 id : jobs-passed-status
512491 run : echo "ALL_JOBS_PASSED=true" >> "$GITHUB_OUTPUT"
513- check-all-jobs-pass-merge-pr :
492+ check-all-jobs-pass :
514493 name : Check all jobs pass
515- if : ${{ github.event_name != 'merge_group' && always() }}
494+ if : ${{ always() }}
516495 runs-on : ubuntu-latest
517496 needs :
518- - all-jobs-pass-merge-pr
497+ - all-jobs-pass
519498 - needs_e2e_build
520499 - e2e-smoke-tests-android
521500 - e2e-smoke-tests-ios
522501 steps :
523502 - run : |
524503 # Check if all non-E2E jobs passed
525- if [[ "${{ needs.all-jobs-pass-merge-pr .outputs.ALL_JOBS_PASSED }}" != "true" ]]; then
504+ if [[ "${{ needs.all-jobs-pass.outputs.ALL_JOBS_PASSED }}" != "true" ]]; then
526505 echo "Non-E2E jobs failed"
527506 exit 1
528507 fi
@@ -540,19 +519,6 @@ jobs:
540519 fi
541520
542521 echo "All required jobs passed"
543- check-all-jobs-pass :
544- name : Check all jobs pass (merge_group)
545- runs-on : ubuntu-latest
546- needs : all-jobs-pass
547- if : ${{ github.event_name == 'merge_group' && always() }}
548- steps :
549- - run : |
550- if [[ "${{ needs.all-jobs-pass.outputs.ALL_JOBS_PASSED }}" == "true" ]]; then
551- echo "All jobs passed. Unblock PR."
552- else
553- echo "All jobs passed step skipped. Block PR."
554- exit 1
555- fi
556522
557523 log-merge-group-failure :
558524 name : Log merge group failure
0 commit comments