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 + }