-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto-generate changelog datacite/homepage#115
- Loading branch information
Martin Fenner
committed
Nov 21, 2020
1 parent
b27f0f9
commit 77b49b5
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Changelog | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
release: | ||
types: [published] | ||
|
||
issues: | ||
types: [closed, edited] | ||
|
||
jobs: | ||
generate_changelog: | ||
runs-on: ubuntu-latest | ||
name: Generate changelog | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Generate changelog | ||
uses: charmixer/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' | ||
- name: Push changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: 'refs/heads/master' | ||
tags: false |