mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Correcting git user setup for post-release automation bot (#52197)
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user