From 68fe5423c24354a1a53a2fc52da943fdb5040893 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 3 Feb 2025 13:33:26 +0900 Subject: [PATCH] WORKFLOW: trying again without the push job - fix2 [skip ci] --- automation_tools/flathub_push_main.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/automation_tools/flathub_push_main.sh b/automation_tools/flathub_push_main.sh index 0c0f18d8..ff25a5f2 100755 --- a/automation_tools/flathub_push_main.sh +++ b/automation_tools/flathub_push_main.sh @@ -81,8 +81,6 @@ if [ -n "${GITHUB_WORKFLOW}" ]; then git config --local user.email "$GIT_MAIL" git config --local credential.helper store - GITHUB_TOKEN="${GITHUB_TOKEN}@" #we add this in order to inject the @ to correctly populate tue git url - # echo "https://${GIT_NAME}:${GITHUB_TOKEN}@github.com" > ~/.git-credentials # echo "RD_BRANCH=$rd_branch" >> $GITHUB_ENV # echo "RELNAME=$relname" >> $GITHUB_ENV @@ -98,5 +96,10 @@ fi git add . git commit -m "Update RetroDECK to v$relname from RetroDECK/$rd_branch" -git push --force "https://${GITHUB_TOKEN}github.com/${flathub_target_repo}" "$relname" + +if [ -n "${GITHUB_WORKFLOW}" ]; then + git push --force "https://${GITHUB_TOKEN}@github.com/${flathub_target_repo}" "$relname" +else + git push --force "https://github.com/${flathub_target_repo}" "$relname" +fi