Skip to content

Commit 30a19c1

Browse files
committed
gha: use st2stanley to create commits
1 parent 96049c8 commit 30a19c1

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/lockfiles.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ env:
2424
# logs and screenshots go in {OUTPUT_BASE_DIR}/lockfile-{resolve}/ (where "lockfile-{resolve}" is the artifact name)
2525
OUTPUT_BASE_DIR: dist/lockfiles # /dist/ is in .gitignore
2626

27+
# see https://api.github.com/users/github-actions[bot]
28+
BOT_GHA_NAME: 'github-actions[bot]'
29+
BOT_GHA_LOGIN: 'github-actions[bot]'
30+
BOT_GHA_ID: '41898282'
31+
BOT_GHA_EMAIL: '41898282+github-actions[bot]@users.noreply.github.com'
32+
# see https://api.github.com/users/st2stanley
33+
BOT_ST2_NAME: 'st2stanley[bot]'
34+
BOT_ST2_LOGIN: 'st2stanley'
35+
BOT_ST2_ID: '7807286'
36+
BOT_ST2_EMAIL: '7807286+st2stanley@users.noreply.github.com'
37+
2738
# We upload the diff image(s) (terminal screenshot(s)) to S3 so we can use it in GitHub flavored markdown.
2839
AWS_REGION: us-west-2 # Oregon
2940
AWS_ACCOUNT_ID: "053075847820"
@@ -126,11 +137,11 @@ jobs:
126137
number: "new"
127138
url: ""
128139
closed: false
129-
author: # see https://api.github.com/users/github-actions[bot]
130-
id: 41898282
140+
author:
141+
id: ${{ env.BOT_ST2_ID }}
131142
is_bot: true
132-
login: "github-actions[bot]"
133-
name: "github-actions[bot]"
143+
login: "${{ env.BOT_ST2_LOGIN }}"
144+
name: "${{ env.BOT_ST2_NAME }}"
134145
maintainerCanModify: true
135146
headRepositoryOwner:
136147
id: "${GITHUB_REPOSITORY_OWNER_ID}"
@@ -408,8 +419,10 @@ jobs:
408419
- name: Create branch for new PR
409420
if: inputs.pr == 'new'
410421
run: |
411-
git config --local user.name "github-actions[bot]"
412-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
422+
git config --local author.name "${{ env.BOT_ST2_NAME }}"
423+
git config --local author.email "${{ env.BOT_ST2_EMAIL }}"
424+
git config --local committer.name "${{ env.BOT_GHA_NAME }}"
425+
git config --local committer.email "${{ env.BOT_GHA_EMAIL }}"
413426
git checkout -b "${{ needs.pr.outputs.PR_REF }}" FETCH_HEAD
414427
415428
- name: Download lockfiles and lockfile diff files

0 commit comments

Comments
 (0)