WORKFLOW: flathub push, trying to set origin first [skip ci]

This commit is contained in:
XargonWan 2025-02-03 15:08:12 +09:00
parent ba98d657cb
commit 8e7c79b50e

View file

@ -99,7 +99,8 @@ git commit -m "Update RetroDECK to v$relname from RetroDECK/$rd_branch"
if [ -n "${GITHUB_WORKFLOW}" ]; then if [ -n "${GITHUB_WORKFLOW}" ]; then
git push --force "${GIT_NAME}@github.com/${flathub_target_repo}.git" "$relname" git remote set-url origin https://x-access-token:${{ env.GH_TOKEN }}@github.com/${flathub_target_repo}
git push --force origin "$relname"
else else
git push --force "https://github.com/${flathub_target_repo}" "$relname" git push --force "https://github.com/${flathub_target_repo}" "$relname"
fi fi