Skip to content

Commit 84ad989

Browse files
authored
Update changelog.yml
1 parent 92bd514 commit 84ad989

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.github/workflows/changelog.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1-
name: On release published
1+
name: "Update Changelog"
2+
23
on:
34
release:
45
types: [released]
56

67
jobs:
7-
changelog:
8-
name: Update changelog
8+
update:
99
runs-on: ubuntu-latest
10+
1011
steps:
11-
- uses: actions/checkout@v2
12+
- name: Checkout code
13+
uses: actions/checkout@v2
1214
with:
13-
ref: master
14-
- uses: rhysd/changelog-from-release/action@v2
15+
ref: main
16+
17+
- name: Update Changelog
18+
uses: stefanzweifel/changelog-updater-action@v1
19+
with:
20+
release-notes: ${{ github.event.release.body }}
21+
latest-version: ${{ github.event.release.name }}
22+
23+
- name: Commit updated CHANGELOG
24+
uses: stefanzweifel/git-auto-commit-action@v4
1525
with:
16-
file: CHANGELOG.md
17-
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
branch: main
27+
commit_message: Update CHANGELOG
28+
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)