From edbbdd8860bf611f25f90cbca830599495bd75b7 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 1 Apr 2024 23:36:29 -0700 Subject: [PATCH] set remote url --- .forgejo/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 99dfb84..0c5d6e9 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -39,4 +39,6 @@ jobs: git config user.name "CI" git config user.email "ci@noreply.libre-chip.org" git commit -n -m "rendered version of $hash" - git push -f origin rendered \ No newline at end of file + [[ "${{ github.server_url }}" =~ ^"https://"(.*)$ ]] + git remote set-url origin "https://x-access-token:${{ github.token }}@${BASH_REMATCH[1]}/${{ github.repository }}" + git push -f origin rendered