Skip to content

Commit 78b284f

Browse files
authored
Add auto changelog workflow
Borrowed from Dries tweet. https://twitter.com/driesvints/status/1492241552508432391
1 parent 6c72429 commit 78b284f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
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)