Skip to content

Commit

Permalink
autogenerate changelog on release
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed May 2, 2020
1 parent ce92ffe commit 67f6c93
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,36 @@ jobs:
user: __token__
password: ${{ secrets.PYPY_API_TOKEN }}




changelog:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Generate changelog
uses: charmixer/auto-changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "materialsproject"
mv CHANGELOG.md docs/
git add docs/CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo ::set-env name=push::1 || echo "No changes to CHANGELOG.md"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}


docs:
runs-on: ubuntu-latest
needs:
- deploy
- changelog

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
paths-ignore:
- 'CHANGELOG.md'
- 'docs/CHANGELOG.md'

pull_request:
branches:
Expand Down

0 comments on commit 67f6c93

Please sign in to comment.