Skip to content

Commit cce1408

Browse files
fix!: change GH_BOT_NAME from workflow secret to input
1 parent fc3e89a commit cce1408

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
contents: read
2020
secrets:
2121
GH_BOT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
22-
GH_BOT_NAME: ${{ vars.GH_BOT_NAME }}
2322
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
2423
with:
25-
target_branch: gh-pages
2624
clean_gh_pages: true
25+
gh_bot_name: ${{ vars.GH_BOT_NAME }}
26+
target_branch: gh-pages
2727

2828
release:
2929
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

.github/workflows/jekyll-build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ on:
4747
required: false
4848
default: ''
4949
type: string
50+
gh_bot_name:
51+
description: 'Name of the bot account'
52+
required: true
53+
type: string
5054
secrets:
5155
GH_BOT_EMAIL:
5256
description: 'Email address of the bot account'
5357
required: true
54-
GH_BOT_NAME:
55-
description: 'Name of the bot account'
56-
required: true
5758
GH_BOT_TOKEN:
5859
description: 'Personal access token of the bot account'
5960
required: true
@@ -272,7 +273,7 @@ jobs:
272273
with:
273274
github_token: ${{ secrets.GH_BOT_TOKEN }}
274275
author_email: ${{ secrets.GH_BOT_EMAIL }}
275-
author_name: ${{ secrets.GH_BOT_NAME }}
276+
author_name: ${{ inputs.gh_bot_name }}
276277
directory: gh-pages
277278
branch: ${{ env.INPUT_TARGET_BRANCH }}
278279
force: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ jobs:
6565
uses: LizardByte/LizardByte.github.io/.github/workflows/jekyll-build.yml@master
6666
secrets:
6767
GH_BOT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
68-
GH_BOT_NAME: ${{ secrets.GH_BOT_NAME }}
6968
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
7069
with:
70+
gh_bot_name: ${{ vars.GH_BOT_NAME }}
7171
site_artifact: 'prep' # any name except 'site' is allowed
7272
target_branch: 'gh-pages'
7373
clean_gh_pages: true

0 commit comments

Comments
 (0)