Skip to content

Commit

Permalink
Merge pull request #2 from lonegunmanb/auto-changelog
Browse files Browse the repository at this point in the history
add auto-update-changelog step
  • Loading branch information
lonegunmanb authored Nov 10, 2022
2 parents 8d84ba6 + eb46f50 commit 78ec330
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update Changelog
on:
push:
branches:
- main
- master

jobs:
update-changelog:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- uses: 8BitJonny/[email protected]
id: PR
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.0.0
- name: update-changelog
if: steps.PR.outputs.number != ''
run: |
docker run --rm -v $(pwd):/src -w /src \
githubchangeloggenerator/github-changelog-generator \
-u ${{ github.repository_owner }} -p ${{ github.event.repository.name }} \
-t ${{ secrets.GITHUB_TOKEN }} --no-issues --no-compare-link \
--since-tag ${{ steps.previoustag.outputs.tag }}
git commit -m "update changelog"
git push

0 comments on commit 78ec330

Please sign in to comment.