diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000..ce5ba3d42 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -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/auto-changelog-action@v1.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Commit files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' + + - name: Push changes + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: 'refs/heads/master' + tags: false