@@ -139,21 +139,21 @@ jobs:
139
139
DRY_RUN : ${{ inputs.dry_run }}
140
140
run : |
141
141
set -x
142
-
142
+
143
143
# For debugging purposes
144
144
git status
145
-
145
+
146
146
if ! git diff-index --quiet HEAD; then
147
- # gradle.properties was changed, we need to commit and push the diff
148
- git -c 'user.name=AWS SDK Rust Bot' -c 'user.email=aws-sdk-rust-primary@amazon.com' commit gradle.properties --message "Upgrade the smithy-rs runtime crates version to ${SEMANTIC_VERSION}"
149
-
147
+ # gradle.properties was changed, we need to commit and push the diff
148
+ git -c 'user.name=AWS SDK Rust Bot' -c 'user.email=aws-sdk-rust-primary@amazon.com' commit gradle.properties --message "Upgrade the smithy-rs runtime crates version to ${SEMANTIC_VERSION}"
149
+
150
150
# This will fail if we tried to release from a non-HEAD commit on the release branch.
151
151
# The only scenario where we would try to release a non-HEAD commit from the release branch is
152
152
# to retry a release action execution that failed due to a transient issue.
153
153
# In that case, we expect the commit to be releasable as-is, i.e. the runtime crate version in gradle.properties
154
154
# should already be the expected one.
155
155
git push origin "HEAD:refs/heads/${RELEASE_BRANCH_NAME}"
156
-
156
+
157
157
echo "commit_sha=$(git rev-parse HEAD)" > $GITHUB_OUTPUT
158
158
else
159
159
echo "commit_sha=${RELEASE_COMMIT_SHA}" > $GITHUB_OUTPUT
@@ -213,7 +213,7 @@ jobs:
213
213
await createReleaseScript({
214
214
github,
215
215
isDryRun: ${{ inputs.dry_run }},
216
- releaseManifestPath: "smithy-rs-release/smithy-rs-release-manifest.json"
216
+ releaseManifestPath: "smithy-rs-release/smithy-rs-release-manifest.json",
217
217
releaseCommitish: "${{ steps.push-changelog.outputs.commit_sha }}"
218
218
});
219
219
- name : Publish to crates.io
0 commit comments