Skip to content

Commit

Permalink
update github workflow to write changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Oct 25, 2024
1 parent e53586a commit 4100492
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ jobs:
NEXT_VERSION="v${VERSION_PARTS[0]}.${VERSION_PARTS[1]}.${VERSION_PARTS[2]}"
echo ::set-output name=NEXT_VERSION::"$NEXT_VERSION"
- name: Update CHANGELOG.md
run: |
echo "## [${{ steps.nextversion.outputs.NEXT_VERSION }}]" >> CHANGELOG.md
echo "- ${{ github.event.pull_request.title }}" >> CHANGELOG.md
- name: Commit changes
run: |
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md for PR #${{ github.event.pull_request.number }}"
- name: Push changes
run: git push origin HEAD:master

- name: Create and publish new tag
run: |
git tag ${{ steps.nextversion.outputs.NEXT_VERSION }}
Expand Down
Empty file added CHANGELOG.md
Empty file.

0 comments on commit 4100492

Please # to comment.