From f4af96d0697cf939f4a837c91d1747c4b977e209 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Tue, 17 Dec 2024 14:00:02 +0000 Subject: [PATCH] [ci] do not block pull requests on cache_bitstreams Signed-off-by: Gary Guo --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcc0600246a07..26ac054ff1e60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -686,3 +686,22 @@ jobs: - name: Check for unrunnable tests run: ./ci/scripts/check-unrunnable-tests.sh continue-on-error: true + + # The branch protection will gate on "Merge blocker" and we use these jobs with conditional names to + # gate on different jobs for merge queue and pull request checks. + merge_blocker_pr: + name: Merge blocker${{ github.event_name != 'pull_request' && ' (skipped)' || '' }} + runs-on: ubuntu-latest + needs: quick_lint + if: ${{ github.event_name == 'pull_request' }} + steps: + - name: Complete + run: 'true' + merge_blocker_merge: + name: Merge blocker${{ github.event_name != 'merge_group' && ' (skipped)' || '' }} + runs-on: ubuntu-latest + needs: cache_bitstreams + if: ${{ github.event_name == 'merge_group' }} + steps: + - name: Complete + run: 'true'