Skip to content

Commit 057a068

Browse files
authored
Update main.yml
1 parent 27e6003 commit 057a068

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)