Skip to content

Commit

Permalink
Commit CHANGELOG when changed
Browse files Browse the repository at this point in the history
  • Loading branch information
izumin5210 committed Sep 13, 2021
1 parent 5084195 commit e2b3c08
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/generate-changelog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ runs:
git show ${{ github.event.pull_request.base.sha }}:./CHANGELOG.md > tmp/CHANGELOG.base.md
cat -s tmp/CHANGELOG.head.md tmp/CHANGELOG.base.md > CHANGELOG.md
git checkout ${{ github.event.pull_request.head.ref }}
git add CHANGELOG.md
git commit -m "Update CHANGELOG for ${RELEASE_TAG}"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
if git diff --name-only CHANGELOG.md | grep -q -e '^CHANGELOG.md$'; then
git add CHANGELOG.md
git commit -m "Update CHANGELOG for ${RELEASE_TAG}"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
fi
env:
RELEASE_TAG: ${{ steps.release-meta.outputs.tag }}
RELEASE_NOTE: ${{ steps.release-meta.outputs.note }}

0 comments on commit e2b3c08

Please sign in to comment.