fix: handle empty git commit in prepare-release-pr workflow

Co-authored-by: Meliox <5264368+Meliox@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-08-09 11:16:30 +00:00 committed by GitHub
parent 732e808e04
commit 2844683197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ jobs:
mkdir -p .github/version-bump
echo "${LOG:-No src/ changes since last release.}" > .github/version-bump/CHANGES.md
git add .github/version-bump/CHANGES.md
git commit -m "chore: collect changes since ${LAST_TAG:-initial}"
git diff --cached --quiet || git commit -m "chore: collect changes since ${LAST_TAG:-initial}"
git push --force origin chore/version-bump
else
# Label change: check out the existing branch, no CHANGES.md update