Skip to content

Commit e256507

Browse files
committed
Allow running release notes check in merge queues
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. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent cfede0a commit e256507

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)