set remote url

This commit is contained in:
Jacob Lifshay 2024-04-01 23:36:29 -07:00
parent 8e4420b93b
commit edbbdd8860
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c

View file

@ -39,4 +39,6 @@ jobs:
git config user.name "CI" git config user.name "CI"
git config user.email "ci@noreply.libre-chip.org" git config user.email "ci@noreply.libre-chip.org"
git commit -n -m "rendered version of $hash" git commit -n -m "rendered version of $hash"
[[ "${{ 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 git push -f origin rendered