diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 6c24013..7c340f0 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -42,6 +42,10 @@ jobs: run: | set -e release-plz update + if [[ -z $(git status --porcelain) ]]; then + echo "No changes were detected. Exiting without bumping the version." + exit 0 + fi version=$(cat Cargo.toml | grep "^version" | awk -F '=' '{ print $2 }' | xargs) commit_message="chore: release $version" git add --all