Skip to content

Commit da0bb35

Browse files
authored
docs: usage of "BOT_NAME"
1 parent 33918fb commit da0bb35

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ jobs:
5757
GITHUB_TOKEN: ${{ steps.generate_token.outputs.BOT_TOKEN }}
5858
env:
5959
# Use app name in outpus of the 'generate_token' step
60-
GIT_COMMITTER_NAME: ${{ steps.generate_token.outputs.BOT_NAME }}
61-
GIT_COMMITTER_EMAIL: ${{ steps.generate_token.outputs.BOT_NAME }}@users.noreply.github.com
60+
GIT_AUTHOR_NAME: ${{ steps.generate_token.outputs.BOT_NAME }}[bot]
61+
GIT_AUTHOR_EMAIL: ${{ steps.generate_token.outputs.BOT_NAME }}[bot]@users.noreply.github.com
62+
GIT_COMMITTER_NAME: ${{ steps.generate_token.outputs.BOT_NAME }}[bot]
63+
GIT_COMMITTER_EMAIL: ${{ steps.generate_token.outputs.BOT_NAME }}[bot]@users.noreply.github.com
6264
```
6365
6466
### Method 2: Use environment variables in the next steps
@@ -80,6 +82,8 @@ jobs:
8082
GITHUB_TOKEN: ${{ env.BOT_TOKEN }}
8183
env:
8284
# Use app name in the environment variable named "BOT_NAME"
85+
GIT_AUTHOR_NAME: ${{ env.BOT_NAME }}[bot]
86+
GIT_AUTHOR_EMAIL: ${{ env.BOT_NAME }}[bot]@users.noreply.github.com
8387
GIT_COMMITTER_NAME: ${{ env.BOT_NAME }}
8488
GIT_COMMITTER_EMAIL: ${{ env.BOT_NAME }}@users.noreply.github.com
8589

@@ -105,6 +109,8 @@ jobs:
105109
with:
106110
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
107111
env:
112+
GIT_AUTHOR_NAME: ${{ secrets.BOT_NAME }}[bot]
113+
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_NAME }}[bot]@users.noreply.github.com
108114
GIT_COMMITTER_NAME: ${{ secrets.BOT_NAME }}
109115
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_NAME }}@users.noreply.github.com
110116
```

0 commit comments

Comments
 (0)