Skip to content

Commit 5018eb3

Browse files
committed
ci: Run linear history check only on pull requests
`GITHUB_BASE_REF` is not available for merge groups
1 parent 9d1ba9d commit 5018eb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/check-mergeable.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66

77
jobs:
88
check_branch_history:
9+
# We need this job to be scheduled for merge groups as well, as it
10+
# is a required status check for merging, but we can safely skip
11+
# it...
12+
if: ${{ github.event_name == 'pull_request' }}
913
name: Check - Linear history
1014
runs-on: ubuntu-latest
1115
steps:

0 commit comments

Comments
 (0)