Skip to content

Commit

Permalink
Fix conditionally running git commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ysaito1001 committed Sep 18, 2024
1 parent c75a423 commit e86ed3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/ci-scripts/generate-smithy-rs-release
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ echo "Synchronizing the SDK lockfile with runtime lockfiles and with crate depen
sdk-lockfiles audit
# Commit the updated SDK lockfile
git add aws/sdk/Cargo.lock
git diff --staged --quiet && \
git diff --staged --quiet || \
git -c 'user.name=AWS SDK Rust Bot' \
-c 'user.email=aws-sdk-rust-primary@amazon.com' \
commit aws/sdk/Cargo.lock \
-m "Synchronize the SDK lockfile" \
|| true
-m "Synchronize the SDK lockfile"

# Generate the crates to publish
./gradlew rust-runtime:assemble
Expand Down

0 comments on commit e86ed3d

Please sign in to comment.