Scheduling infrastructure for absolutely everyone.
chore: Remove need for force merges (#13021)
Keith Williams71e57bafde18
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex 5395b1bd847..9a507bfc9ad 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -4,9 +4,6 @@ on:pull_request_target:branches:- main- paths-ignore:- - "**.md"- - ".github/CODEOWNERS"merge_group:workflow_dispatch:@@ -15,36 +12,62 @@ concurrency:cancel-in-progress: truejobs:+ changes:+ name: Detect changes+ runs-on: buildjet-4vcpu-ubuntu-2204+ permissions:+ pull-requests: read+ outputs:+ has-files-requiring-all-checks: ${{ steps.filter.outputs.has-files-requiring-all-checks }}+ steps:+ - uses: actions/checkout@v3+ - uses: ./.github/actions/dangerous-git-checkout+ - uses: dorny/paths-filter@v2+ id: filter+ with:+ filters: |+ has-files-requiring-all-checks:+ - "!(**.md|.github/CODEOWNERS)"type-check:name: Type check+ needs: [changes]+ if: ${{ needs.changes.outputs.has-files-requiring-all-checks == 'true' }}uses: ./.github/workflows/check-types.ymlsecrets: inherittest:name: Unit tests+ needs: [changes]+ if: ${{ needs.changes.outputs.has-files-requiring-all-checks == 'true' }}uses: ./.github/workflows/unit-tests.ymlsecrets: inheritlint:name: Linters+ needs: [changes]+ if: ${{ needs.changes.outputs.has-files-requiring-all-checks == 'true' }}uses: ./.github/workflows/lint.ymlsecrets: inheritbuild:name: Production build+ needs: [changes]+ if: ${{ needs.changes.outputs.has-files-requiring-all-checks == 'true' }}uses: ./.github/workflows/production-build.ymlsecrets: inheritanalyze:- needs: build+ name: Analyze Build+ needs: [changes, build]+ if: ${{ needs.changes.outputs.has-files-requiring-all-checks == 'true' }}uses: ./.github/workflows/nextjs-bundle-analysis.ymlsecrets: inheritrequired:- needs: [lint, type-check, test, build]+ needs: [changes, lint, type-check, test, build]if: always()runs-on: buildjet-4vcpu-ubuntu-2204steps:- name: fail if conditional jobs failed- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')+ if: needs.changes.outputs.has-files-requiring-all-checks == 'true' && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled'))run: exit 1