Skip to content

Commit d07c157

Browse files
carderneTrigger.dev RepoOps
authored andcommitted
fix: check out merge queue candidates before path filtering
Mono-RevId: 32d6846aca31f47c22f94ff8f734a48382330ba4
1 parent 3ad816f commit d07c157

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/pr_checks.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
cli: ${{ steps.filter.outputs.cli }}
2828
sdk: ${{ steps.filter.outputs.sdk }}
2929
steps:
30+
# Merge queue events use Git to compare the synthetic merge commit with
31+
# its captured base, while pull request events use the GitHub API.
32+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
33+
if: github.event_name == 'merge_group'
34+
with:
35+
fetch-depth: 20
36+
filter: blob:none
37+
persist-credentials: false
38+
3039
# `code` uses `every` semantics so the negation patterns actually subtract.
3140
# With the default `some` quantifier, `**` matches every file and the
3241
# subsequent `!...` patterns are no-ops (each pattern is OR'd, not AND'd).

0 commit comments

Comments
 (0)