Skip to content

Commit b62f76f

Browse files
authored
Remove env.GITHUB_TOKEN
1 parent aeaf137 commit b62f76f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

action.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@ else
3131
export CONFIG_FILE="${GITHUB_WORKSPACE}/mkdocs.yml"
3232
fi
3333

34-
if [ -n "${GITHUB_TOKEN}" ]; then
35-
print_info "setup with GITHUB_TOKEN"
34+
if [ -n "${INPUT_AUTH_TOKEN}" ]; then
35+
print_info "setup with INPUT_AUTH_TOKEN"
3636
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
3737
elif [ -n "${PERSONAL_TOKEN}" ]; then
3838
print_info "setup with PERSONAL_TOKEN"
3939
remote_repo="https://x-access-token:${PERSONAL_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
40-
elif [ -n "${INPUT_AUTH_TOKEN}" ]; then
41-
print_info "setup with INPUT_AUTH_TOKEN"
42-
remote_repo="https://x-access-token:${INPUT_AUTH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
4340
fi
4441

4542
if ! git config --get user.name; then

0 commit comments

Comments
 (0)