WORKFLOW: trying using gh instead - fix9 [skip ci]

This commit is contained in:
XargonWan 2025-02-03 14:11:36 +09:00
parent 80845fd4d8
commit 6acb4a6805

View file

@ -77,10 +77,10 @@ EOF
# If we are in a GitHub workflow... # If we are in a GitHub workflow...
if [ -n "${GITHUB_WORKFLOW}" ]; then if [ -n "${GITHUB_WORKFLOW}" ]; then
git config --local user.name "$GIT_NAME" git config --global user.name "$GIT_NAME"
git config --local user.email "$GIT_MAIL" git config --global user.email "$GIT_MAIL"
git config --local credential.helper store git config --global credential.helper store
echo "${GITHUB_TOKEN}" | gh auth login --with-token gh auth login
elif [[ -z $(git config --get user.name) || -z $(git config --get user.email) ]]; then elif [[ -z $(git config --get user.name) || -z $(git config --get user.email) ]]; then
read -p "No git user.name set, please enter your name: " git_username read -p "No git user.name set, please enter your name: " git_username
git config --local user.name "$git_username" git config --local user.name "$git_username"