Skip to content

Commit 1879fec

Browse files
committed
Don't fail CI if crate version already bumped
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent 7c69a26 commit 1879fec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ jobs:
7171
git config user.name "GitHub Actions"
7272
git config user.email "actions@github.com"
7373
git add $CARGO_FILE
74-
git commit -m "Bump $CRATE to v$VERSION"
74+
if git diff --cached --quiet; then
75+
echo "Version already at v$VERSION, skipping commit"
76+
else
77+
git commit -m "Bump $CRATE to v$VERSION"
78+
fi
7579
7680
- name: Install protobuf
7781
if: ${{ contains(fromJSON('["client","snapshots"]'), inputs.crate) }}

0 commit comments

Comments
 (0)