From 14c52644129dcfaa3be4f162cfc861fa9c088853 Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:09:11 +0100 Subject: [PATCH] fix: make release workflow version bump conditional The commit step failed when the input version matched the existing version in build.gradle.kts, causing `git commit` to exit 1 on an empty diff. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d23fe2..4b5879e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,5 +45,7 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add build.gradle.kts - git commit -m "chore: bump version to ${{ inputs.version }}" - git push + git diff --cached --quiet && echo "No version change to commit" || { + git commit -m "chore: bump version to ${{ inputs.version }}" + git push + }