Skip to content

Commit 16d0a81

Browse files
committed
Added GH Action to check CHANGELOG.md
1 parent da226b6 commit 16d0a81

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check CHANGELOG.md
2+
3+
on:
4+
push:
5+
branches: [ master, check-changelog ]
6+
pull_request:
7+
merge_group:
8+
9+
jobs:
10+
check_changelog:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Check for CHANGELOG.md
18+
run: |
19+
if ! git diff --name-only HEAD^ | grep -q "^CHANGELOG.md$"; then
20+
echo "ERROR: CHANGELOG.md not modified in this pull request"
21+
exit 1
22+
fi

0 commit comments

Comments
 (0)