Skip to content

Commit d97f929

Browse files
Add generate changelog action (#21)
* Add generate changelog action * Create PR instead of pushing directly
1 parent 6a9612e commit d97f929

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Generate changelog
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
generate_changelog:
9+
runs-on: ubuntu-latest
10+
name: Generate changelog for default branch
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Generate changelog
15+
uses: charmixer/auto-changelog-action@v1
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
release_branch: master
19+
20+
- name: Create Pull Request
21+
uses: peter-evans/create-pull-request@v2
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
commit-message: Update changelog
25+
title: Update changelog
26+
body: Update the changelog. This PR is created automatically after a new release.
27+
branch: update-changelog

0 commit comments

Comments
 (0)