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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
3229cc9b96
commit
14c5264412
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user