fix: guard against empty commit in prepare-release-pr workflow (#272)

* Initial plan

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

Co-authored-by: Meliox <5264368+Meliox@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Meliox <5264368+Meliox@users.noreply.github.com>
This commit is contained in:
Copilot 2026-08-09 13:19:45 +02:00 committed by GitHub
parent 3a3ac75010
commit 3566c0066b
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