|
24 | 24 | # logs and screenshots go in {OUTPUT_BASE_DIR}/lockfile-{resolve}/ (where "lockfile-{resolve}" is the artifact name) |
25 | 25 | OUTPUT_BASE_DIR: dist/lockfiles # /dist/ is in .gitignore |
26 | 26 |
|
| 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 | + |
27 | 38 | # We upload the diff image(s) (terminal screenshot(s)) to S3 so we can use it in GitHub flavored markdown. |
28 | 39 | AWS_REGION: us-west-2 # Oregon |
29 | 40 | AWS_ACCOUNT_ID: "053075847820" |
@@ -126,11 +137,11 @@ jobs: |
126 | 137 | number: "new" |
127 | 138 | url: "" |
128 | 139 | closed: false |
129 | | - author: # see https://api.github.com/users/github-actions[bot] |
130 | | - id: 41898282 |
| 140 | + author: |
| 141 | + id: ${{ env.BOT_ST2_ID }} |
131 | 142 | 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 }}" |
134 | 145 | maintainerCanModify: true |
135 | 146 | headRepositoryOwner: |
136 | 147 | id: "${GITHUB_REPOSITORY_OWNER_ID}" |
@@ -408,8 +419,10 @@ jobs: |
408 | 419 | - name: Create branch for new PR |
409 | 420 | if: inputs.pr == 'new' |
410 | 421 | 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 }}" |
413 | 426 | git checkout -b "${{ needs.pr.outputs.PR_REF }}" FETCH_HEAD |
414 | 427 |
|
415 | 428 | - name: Download lockfiles and lockfile diff files |
|
0 commit comments