Skip to content

Commit

Permalink
commit CHANGELOG changes safely
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffi authored and Raffi committed May 27, 2024
1 parent f0df1d8 commit 57e35f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/bump-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ jobs:
run: sh update_changelog.sh -v ${{ inputs.version }}
- name: Commit and push the changes made to the CHANGELOG.md file
if: inputs.version != '' && inputs.dryRun == false
run: |
git add CHANGELOG.md
git commit -m "update CHANGELOG.md"
git push
run: sh commit_changelog.sh
- name: Add and push new git tag
if: inputs.version != ''
run: |
Expand Down
5 changes: 5 additions & 0 deletions commit_changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if ! git diff --quiet CHANGELOG.md; then
git add CHANGELOG.md
git commit -m "update CHANGELOG.md"
git push
fi

0 comments on commit 57e35f2

Please sign in to comment.