Skip to content

Commit f7ab79c

Browse files
sy-tenchomassongit
andauthored
use TOKEN over GITHUB_TOKEN in push job (#756)
Co-authored-by: Masaya Suzuki <15100604+massongit@users.noreply.github.com>
1 parent 549cd5f commit f7ab79c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
env:
3535
PR_TITLE_PREFIX: ${{inputs.pr-title-prefix}}
3636
AUTHOR: ${{github.actor}}
37-
GITHUB_TOKEN: ${{inputs.github-token}}
37+
TOKEN: ${{inputs.github-token}}
3838
REPOSITORY: ${{github.repository}}
3939
BRANCH_NAME_PREFIX: ${{inputs.branch-name-prefix}}
4040
if: steps.diff.outputs.result != '' && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')

scripts/action/push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ EMAIL="41898282+github-actions[bot]@users.noreply.github.com"
55
git config user.email "${EMAIL}"
66
git commit -m "${PR_TITLE_PREFIX}"
77
REPO_URL="https://"
8-
REPO_URL+="${AUTHOR}:${GITHUB_TOKEN}@github.com/"
8+
REPO_URL+="${AUTHOR}:${TOKEN}@github.com/"
99
REPO_URL+="${REPOSITORY}.git"
1010
GITHUB_HEAD="HEAD:refs/heads/${BRANCH_NAME_PREFIX}-${HEAD_REF}"
1111
git push -f "${REPO_URL}" "${GITHUB_HEAD}"

0 commit comments

Comments
 (0)