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

Set user name and email when committing (#2290)

parent d9efa6bd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -133,7 +133,10 @@ jobs:
        SEMANTIC_VERSION: ${{ inputs.semantic_version }}
        DRY_RUN: ${{ inputs.dry_run }}
      run: |
        # The file was actually changed, we need to commit the changes
        git diff-index --quiet HEAD || 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}"
        echo "Pushing upgraded gradle.properties commit..."
        # This will succeed even if nothing new was committed
        git push origin

  release:
@@ -230,5 +233,5 @@ jobs:
        # a commit that is not the current tip of `main`.
        # We can build more refined automation to handle this case in the future - until then, it'll require
        # a manual PR to edit the current CHANGELOG.next.toml file and remove the released entries.
        git commit CHANGELOG.next.toml --message "Remove released entries from \`CHANGELOG.next.toml\`"
        git -c 'user.name=AWS SDK Rust Bot' -c 'user.email=aws-sdk-rust-primary@amazon.com' commit CHANGELOG.next.toml --message "Remove released entries from \`CHANGELOG.next.toml\`"
        git push origin main
+0 −2
Original line number Diff line number Diff line
@@ -13,8 +13,6 @@ mkdir -p "${ARTIFACTS_DIR}"

pushd "${SMITHY_RS_DIR}"
publisher upgrade-runtime-crates-version --version "${SEMANTIC_VERSION}"
# The file was actually changed, we need to commit the changes
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