Skip to content

Commit 6b1a4d2

Browse files
committed
trying to fix it
1 parent b3d0c9c commit 6b1a4d2

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
name: Check CHANGELOG.md
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
7-
branches: [ master ]
5+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
86

97
jobs:
108
check_changelog:
119
runs-on: ubuntu-latest
12-
1310
steps:
1411
- name: Checkout code
15-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1613

1714
- 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
15+
uses: dangoslen/changelog-enforcer@v3
16+
with:
17+
missingUpdateErrorMessage: 'Please add a changelog entry in the CHANGELOG.md file.'
18+

0 commit comments

Comments
 (0)