Skip to content

Commit 974a9ea

Browse files
authored
Allow running release notes check in merge queues (#566)
The check will do nothing for merge queues, as we need the PR information to be able to check anything. But in any case, checking again is not necessary because PRs should be queued for merge only when they already pass the release notes check.
2 parents cfede0a + e256507 commit 974a9ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release_notes_check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release Notes Check
22

33
on:
4+
merge_group:
45
pull_request:
56
types:
67
# On by default if you specify no types.
@@ -11,12 +12,14 @@ on:
1112
- "labeled"
1213
- "unlabeled"
1314

15+
1416
jobs:
1517
check-release-notes:
1618
name: Check release notes are updated
1719
runs-on: ubuntu-latest
1820
steps:
1921
- name: Check for a release notes update
22+
if: github.event_name == 'pull_request'
2023
uses: brettcannon/check-for-changed-files@294a99714e0d350b5083472a293d41bc91804e68 # v1.1.1
2124
with:
2225
file-pattern: "RELEASE_NOTES.md"

0 commit comments

Comments
 (0)