Skip to content

Commit ccef32f

Browse files
committed
build: fix typo and use USER_NAME environment variable
1 parent d7058bc commit ccef32f

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/lint_autofix.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ on:
3434
# Define the secrets accessible by the workflow:
3535
secrets:
3636
STDLIB_BOT_GITHUB_TOKEN:
37-
description: 'GitHub token for stdlb-bot'
37+
description: 'GitHub token for stdlib-bot'
3838
required: true
3939
REPO_GITHUB_TOKEN:
4040
description: 'GitHub token for accessing the repository'
4141
required: true
4242
STDLIB_BOT_GPG_PRIVATE_KEY:
43-
description: 'GPG private key for stdlb-bot'
43+
description: 'GPG private key for stdlib-bot'
4444
required: true
4545
STDLIB_BOT_GPG_PASSPHRASE:
46-
description: 'GPG passphrase for stdlb-bot'
46+
description: 'GPG passphrase for stdlib-bot'
4747
required: true
4848

4949
# Workflow jobs:
@@ -175,12 +175,12 @@ jobs:
175175
- name: 'Commit and push changes'
176176
env:
177177
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
178-
USER_NAME: stdlb-bot
178+
USER_NAME: stdlib-bot
179179
BRANCH_NAME: ${{ steps.pr-details.outputs.branch }}
180180
REPO_NAME: ${{ steps.pr-details.outputs.repository }}
181181
run: |
182182
git config --local user.email "[email protected]"
183-
git config --local user.name "stdlib-bot"
183+
git config --local user.name "$USER_NAME"
184184
git add .
185185
git commit -m "fix: resolve lint errors"
186186
git push "https://$USER_NAME:[email protected]/$REPO_NAME.git" $BRANCH_NAME

.github/workflows/pr_merge_develop.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ on:
3434
# Define the secrets accessible by the workflow:
3535
secrets:
3636
STDLIB_BOT_GITHUB_TOKEN:
37-
description: 'GitHub token for stdlb-bot'
37+
description: 'GitHub token for stdlib-bot'
3838
required: true
3939
REPO_GITHUB_TOKEN:
4040
description: 'GitHub token for accessing the repository'
4141
required: true
4242
STDLIB_BOT_GPG_PRIVATE_KEY:
43-
description: 'GPG private key for stdlb-bot'
43+
description: 'GPG private key for stdlib-bot'
4444
required: true
4545
STDLIB_BOT_GPG_PASSPHRASE:
46-
description: 'GPG passphrase for stdlb-bot'
46+
description: 'GPG passphrase for stdlib-bot'
4747
required: true
4848

4949
# Workflow jobs:
@@ -104,13 +104,13 @@ jobs:
104104
- name: 'Merge develop branch'
105105
env:
106106
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
107-
USER_NAME: stdlb-bot
107+
USER_NAME: stdlib-bot
108108
BRANCH_NAME: ${{ steps.pr-details.outputs.branch }}
109109
REPO_NAME: ${{ steps.pr-details.outputs.repository }}
110110
run: |
111111
# Configure Git user:
112112
git config --local user.email "[email protected]"
113-
git config --local user.name "stdlib-bot"
113+
git config --local user.name "$USER_NAME"
114114
115115
# Add upstream remote pointing to the original repository:
116116
git remote add upstream https://github.com/stdlib-js/stdlib.git

.github/workflows/pr_rebase_develop.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ on:
3434
# Define the secrets accessible by the workflow:
3535
secrets:
3636
STDLIB_BOT_GITHUB_TOKEN:
37-
description: 'GitHub token for stdlb-bot'
37+
description: 'GitHub token for stdlib-bot'
3838
required: true
3939
REPO_GITHUB_TOKEN:
4040
description: 'GitHub token for accessing the repository'
4141
required: true
4242
STDLIB_BOT_GPG_PRIVATE_KEY:
43-
description: 'GPG private key for stdlb-bot'
43+
description: 'GPG private key for stdlib-bot'
4444
required: true
4545
STDLIB_BOT_GPG_PASSPHRASE:
46-
description: 'GPG passphrase for stdlb-bot'
46+
description: 'GPG passphrase for stdlib-bot'
4747
required: true
4848

4949
# Workflow jobs:
@@ -104,13 +104,13 @@ jobs:
104104
- name: 'Rebase on develop branch'
105105
env:
106106
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
107-
USER_NAME: stdlb-bot
107+
USER_NAME: stdlib-bot
108108
BRANCH_NAME: ${{ steps.pr-details.outputs.branch }}
109109
REPO_NAME: ${{ steps.pr-details.outputs.repository }}
110110
run: |
111111
# Configure Git user:
112112
git config --local user.email "[email protected]"
113-
git config --local user.name "stdlib-bot"
113+
git config --local user.name "$USER_NAME"
114114
115115
# Add upstream remote pointing to the original repository:
116116
git remote add upstream https://github.com/stdlib-js/stdlib.git

.github/workflows/update_pr_copyright_years.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ on:
3434
# Define the secrets accessible by the workflow:
3535
secrets:
3636
STDLIB_BOT_GITHUB_TOKEN:
37-
description: 'GitHub token for stdlb-bot'
37+
description: 'GitHub token for stdlib-bot'
3838
required: true
3939
REPO_GITHUB_TOKEN:
4040
description: 'GitHub token for accessing the repository'
4141
required: true
4242
STDLIB_BOT_GPG_PRIVATE_KEY:
43-
description: 'GPG private key for stdlb-bot'
43+
description: 'GPG private key for stdlib-bot'
4444
required: true
4545
STDLIB_BOT_GPG_PASSPHRASE:
46-
description: 'GPG passphrase for stdlb-bot'
46+
description: 'GPG passphrase for stdlib-bot'
4747
required: true
4848

4949
# Workflow jobs:
@@ -142,12 +142,12 @@ jobs:
142142
- name: 'Commit and push changes'
143143
env:
144144
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
145-
USER_NAME: stdlb-bot
145+
USER_NAME: stdlib-bot
146146
BRANCH_NAME: ${{ steps.pr-details.outputs.branch }}
147147
REPO_NAME: ${{ steps.pr-details.outputs.repository }}
148148
run: |
149149
git config --local user.email "[email protected]"
150-
git config --local user.name "stdlib-bot"
150+
git config --local user.name "$USER_NAME"
151151
git add .
152152
git commit -m "chore: update copyright years"
153153
git push "https://$USER_NAME:[email protected]/$REPO_NAME.git" $BRANCH_NAME

0 commit comments

Comments
 (0)