From 80845fd4d8c2cb87f54458ee1c6a65423ed95c49 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 3 Feb 2025 14:03:34 +0900 Subject: [PATCH] WORKFLOW: trying using gh instead - fix8 [skip ci] --- automation_tools/flathub_push_main.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/automation_tools/flathub_push_main.sh b/automation_tools/flathub_push_main.sh index a3f68a05..7873d68a 100755 --- a/automation_tools/flathub_push_main.sh +++ b/automation_tools/flathub_push_main.sh @@ -77,7 +77,10 @@ EOF # If we are in a GitHub workflow... if [ -n "${GITHUB_WORKFLOW}" ]; then - gh auth login + git config --local user.name "$GIT_NAME" + git config --local user.email "$GIT_MAIL" + git config --local credential.helper store + echo "${GITHUB_TOKEN}" | gh auth login --with-token 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 git config --local user.name "$git_username"