From 3566c0066b1b898024f9b6e3ffd0e55fcfe36355 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sun, 9 Aug 2026 13:19:45 +0200 Subject: [PATCH] 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> --- .github/workflows/prepare-release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prepare-release-pr.yml b/.github/workflows/prepare-release-pr.yml index 6f4f37d..41048af 100644 --- a/.github/workflows/prepare-release-pr.yml +++ b/.github/workflows/prepare-release-pr.yml @@ -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