Correcting git user setup for post-release automation bot (#52197)

This commit is contained in:
Gus Rivera
2025-02-14 19:51:46 +00:00
committed by GitHub
parent e05c13b768
commit c5bdc6dd1f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -91,8 +91,8 @@ jobs:
REVIEWER: ${{ github.event.release.author.login }}
run: |
BRANCH_NAME="release-auto-branch-$(date +%s)"
git config --global user.email "noreply@github.com"
git config --global user.name "GitHub"
git config --global user.email "128860004+teleport-post-release-automation[bot]@users.noreply.github.com"
git config --global user.name "teleport-post-release-automation[bot]"
# get Go version from go.mod (preferring the toolchain directive if it's present)
GO_VERSION=$(go mod edit -json | jq -r 'if has("Toolchain") then .Toolchain | sub("go"; "") else .Go end')
+2 -2
View File
@@ -53,7 +53,7 @@ jobs:
VERSION: ${{ inputs.version }}
PR_REVIEWER: ${{ github.event.release.author.login }}
run: |
git config --global user.email "noreply@github.com"
git config --global user.name "GitHub"
git config --global user.email "128860004+teleport-post-release-automation[bot]@users.noreply.github.com"
git config --global user.name "teleport-post-release-automation[bot]"
make -C assets/aws create-update-pr "TELEPORT_VERSION=${VERSION}" "AMI_PR_REVIEWER=${PR_REVIEWER}"
echo "AMI PR: $(gh pr view --json url --jq .url)" >> "$GITHUB_STEP_SUMMARY"