File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -103,30 +103,6 @@ jobs:
103103 ${{ steps.generate_notes.outputs.CHANGELOG_BODY }}
104104 env :
105105 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
106-
107- - name : Commit Updated Changelog to Repository
108- run : |
109- # Store the updated changelog temporarily
110- mv debian/changelog /tmp/changelog
111-
112- # Configure git user for the commit
113- git config --global user.name "GitHub Actions"
114- git config --global user.email "[email protected] " 115-
116- # The checkout is in a detached HEAD state. We need to switch to the branch.
117- # Replace 'main' with your repository's default branch if it's different.
118- git checkout main
119-
120- # Restore the updated changelog
121- mv /tmp/changelog debian/changelog
122-
123- # Add, commit, and push the updated changelog.
124- # The [skip ci] in the message prevents this commit from re-triggering the workflow.
125- git add debian/changelog
126- # Check if there are changes to commit to avoid an error if the file is unchanged
127- if git diff --staged --quiet; then
128- echo "Changelog is already up-to-date."
129- else
130106 git commit -m "Chore : Update debian/changelog for release ${{ github.ref_name }} [skip ci]"
131107 git push
132108 fi
You can’t perform that action at this time.
0 commit comments