diff --git a/.gitea/workflows/deploy-pages.yml b/.gitea/workflows/deploy-pages.yml index b764f26c..dfb429b7 100644 --- a/.gitea/workflows/deploy-pages.yml +++ b/.gitea/workflows/deploy-pages.yml @@ -30,5 +30,6 @@ jobs: mv site/* . git add . git commit -m "Update site - $(date)" - git push -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/Controls/gitea-pages.git gitea-pages + REPO_URL=$(echo "${{ github.server_url }}/${{ github.repository }}.git" | sed 's|https://||') + git push -f https://${{ secrets.GITHUB_TOKEN }}@$REPO_URL gitea-pages