From 6fcf576fe62afa7d910bed744b29799b16da4e3a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 3 Feb 2025 13:38:56 +0900 Subject: [PATCH] WORKFLOW: trying using gh instead [skip ci] --- automation_tools/flathub_push_main.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automation_tools/flathub_push_main.sh b/automation_tools/flathub_push_main.sh index b39c98ed..7765b4be 100755 --- a/automation_tools/flathub_push_main.sh +++ b/automation_tools/flathub_push_main.sh @@ -98,7 +98,9 @@ git add . git commit -m "Update RetroDECK to v$relname from RetroDECK/$rd_branch" if [ -n "${GITHUB_WORKFLOW}" ]; then - git push --force "https://${GITHUB_TOKEN}:x-oauth-basic@github.com/${flathub_target_repo}" "$relname" + gh auth login --with-token <<< "${GITHUB_TOKEN}" + gh repo set-default "${flathub_target_repo}" + gh repo sync --force --branch "$relname" else git push --force "https://github.com/${flathub_target_repo}" "$relname" fi