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:
parent
3a3ac75010
commit
3566c0066b
2
.github/workflows/prepare-release-pr.yml
vendored
2
.github/workflows/prepare-release-pr.yml
vendored
@ -59,7 +59,7 @@ jobs:
|
|||||||
mkdir -p .github/version-bump
|
mkdir -p .github/version-bump
|
||||||
echo "${LOG:-No src/ changes since last release.}" > .github/version-bump/CHANGES.md
|
echo "${LOG:-No src/ changes since last release.}" > .github/version-bump/CHANGES.md
|
||||||
git add .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
|
git push --force origin chore/version-bump
|
||||||
else
|
else
|
||||||
# Label change: check out the existing branch, no CHANGES.md update
|
# Label change: check out the existing branch, no CHANGES.md update
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user