Skip to content

Commit 980ce42

Browse files
author
Martin Fenner
committed
add changelog action
1 parent ab4c633 commit 980ce42

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/changelog.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Changelog
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
release:
8+
types: [published]
9+
10+
issues:
11+
types: [closed, edited]
12+
13+
jobs:
14+
generate_changelog:
15+
runs-on: ubuntu-latest
16+
name: Generate changelog
17+
steps:
18+
- uses: actions/checkout@v1
19+
20+
- name: Generate changelog
21+
uses: charmixer/auto-changelog-action@v1.1
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Commit files
26+
run: |
27+
git config --local user.email "action@github.com"
28+
git config --local user.name "GitHub Action"
29+
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md'
30+
31+
- name: Push changes
32+
uses: ad-m/github-push-action@v0.6.0
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
branch: 'refs/heads/master'
36+
tags: false

0 commit comments

Comments
 (0)