Skip to content

Commit d9f1622

Browse files
authored
Update ci-gate condition to check event types and cancellation status (#11329)
1 parent ad5d877 commit d9f1622

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main_matrix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ jobs:
211211

212212
# Single, stable status check for branch protection.
213213
# Always runs and passes only if every build and check that ran succeeded.
214-
# Consumed in PRs and Merge Queue
215214
ci-gate:
216-
if: always()
215+
# Consumed in PRs and Merge Queue
216+
if: contains(fromJSON('["pull_request", "merge_group"]'), github.event_name) && !cancelled()
217217
needs: [build, check]
218218
runs-on: ubuntu-slim
219219
steps:

0 commit comments

Comments
 (0)