Skip to content

Commit 64a0f43

Browse files
authoredFeb 8, 2022
Create update-changelog.yml
1 parent bc44a9c commit 64a0f43

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
 
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.ref_name }}
16+
17+
- name: Update Changelog
18+
uses: stefanzweifel/changelog-updater-action@v1
19+
with:
20+
latest-version: ${{ github.event.release.tag_name }}
21+
release-notes: ${{ github.event.release.body }}
22+
compare-url-target-revision: ${{ github.event.release.target_commitish }}
23+
24+
- name: Commit updated CHANGELOG
25+
uses: stefanzweifel/git-auto-commit-action@v4
26+
with:
27+
branch: ${{ github.event.release.target_commitish }}
28+
commit_message: Update CHANGELOG.md
29+
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)
Please sign in to comment.