diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index e39e0e3..3fa0386 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -94,6 +94,10 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add Cargo.toml - git commit -m "chore(release): v${new_version}" + if git diff --cached --quiet; then + echo "Cargo.toml already at v${new_version}, skipping commit" + else + git commit -m "chore(release): v${new_version}" + fi git tag "v${new_version}" git push origin main --tags