WORKFLOW: changing push action - fix8 [skip ci]

This commit is contained in:
XargonWan 2025-02-03 11:45:09 +09:00
parent b06c18e94c
commit d98ec8c90b

View file

@ -78,6 +78,8 @@ EOF
if [ -n "${GITHUB_WORKFLOW}" ]; then if [ -n "${GITHUB_WORKFLOW}" ]; then
git config --local user.name "$GIT_NAME" git config --local user.name "$GIT_NAME"
git config --local user.email "$GIT_MAIL" git config --local user.email "$GIT_MAIL"
git config --local credential.helper store
echo "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com" > ~/.git-credentials
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"
@ -97,4 +99,5 @@ git commit -m "Updated flathub/net.retrodeck.retrodeck to v$relname from RetroDE
if [ -n "${GITHUB_WORKFLOW}" ]; then if [ -n "${GITHUB_WORKFLOW}" ]; then
git push --force "https://github.com/${flathub_target_repo}.git" "$relname" git push --force "https://github.com/${flathub_target_repo}.git" "$relname"
rm ~/.git-credentials
fi fi