Skip to content

Commit 9175d1d

Browse files
committed
change changelog CI
1 parent 46a384c commit 9175d1d

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/changelog.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
on:
2-
pull_request_target:
2+
pull_request:
3+
# Run on labeled/unlabeled in addition to defaults to detect
4+
# adding/removing skip-changelog labels.
5+
types: [opened, reopened, labeled, unlabeled, synchronize]
6+
merge_group:
37

48
name: Changelog check
59

@@ -9,11 +13,10 @@ jobs:
913
runs-on: ubuntu-latest
1014
steps:
1115
- name: Checkout sources
12-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1317

14-
- name: Changelog updated
15-
uses: Zomzog/changelog-[email protected]
18+
- name: Check changelog update
19+
uses: dangoslen/changelog-enforcer@v3
1620
with:
17-
fileName: CHANGELOG.md
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
skipLabels: skip-changelog
22+
missingUpdateErrorMessage: "Please add a changelog entry to the appropriate section of the CHANGELOG.md file."

0 commit comments

Comments
 (0)