Unverified Commit d9efa6bd authored by Luca Palmieri's avatar Luca Palmieri Committed by GitHub
Browse files

Commit if modified (#2289)

* Fix paths.

* Fix commit logic - it should commit when there were changes.
parent 27429c8b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -13,10 +13,8 @@ mkdir -p "${ARTIFACTS_DIR}"

pushd "${SMITHY_RS_DIR}"
publisher upgrade-runtime-crates-version --version "${SEMANTIC_VERSION}"
if git diff-index --quiet HEAD; then
# The file was actually changed, we need to commit the changes
  git commit gradle.properties --message "Upgrade the smithy-rs runtime crates version to ${SEMANTIC_VERSION}"
fi
git diff-index --quiet HEAD || git commit gradle.properties --message "Upgrade the smithy-rs runtime crates version to ${SEMANTIC_VERSION}"
popd

# Clone smithy-rs repo changes (changelog updates) into