Skip to content

Commit e9f1fc8

Browse files
authored
ci: use hardcoded names directly due to api is not accessible (#1566)
# What does this PR do? api resource is not accessible from the runner therefore the the user name and email should be hardcoded.
1 parent b3f09e2 commit e9f1fc8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/release-proposal-dispatch.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ env:
3232
MAIN_BRANCH: main
3333
RELEASE_BRANCH: release
3434
PROPOSAL_BRANCH_PREFIX: release-proposal
35-
GIT_USER_NAME: "github-actions[bot]"
36-
GIT_USER_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
35+
GIT_USER_NAME: "dd-octo-sts[bot]"
36+
GIT_USER_EMAIL: "200755185+dd-octo-sts[bot]@users.noreply.github.com"
3737

3838
jobs:
3939
check-proposal-ongoing:
@@ -78,14 +78,9 @@ jobs:
7878
env:
7979
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
8080
run: |
81-
BOT_USER=$(gh api /user)
82-
BOT_NAME=$(echo "$BOT_USER" | jq -r '.login')
83-
BOT_ID=$(echo "$BOT_USER" | jq -r '.id')
8481
85-
git config --global user.name "$BOT_NAME"
86-
git config --global user.email "${BOT_ID}+${BOT_NAME}@users.noreply.github.com"
87-
88-
echo "Configured git as: $BOT_NAME <${BOT_ID}+${BOT_NAME}@users.noreply.github.com>"
82+
git config --global user.name "$GIT_USER_NAME"
83+
git config --global user.email "$GIT_USER_EMAIL"
8984
9085
- name: Merge the main branch into the release branch
9186
run: |

0 commit comments

Comments
 (0)