mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
WORKFLOW: trying using gh instead - fix9 [skip ci]
This commit is contained in:
parent
80845fd4d8
commit
6acb4a6805
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue