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]andMeliox authored and GitHub committed 2026-08-09 11:16:30 +00:00
1 parent 732e808e04
commit 2844683197
1 file changed
+1 -1
+1 -1
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