ci: fix remote git url

This commit is contained in:
fa-sharp
2026-02-20 03:25:40 -05:00
parent e0f91c6c80
commit 0e0da24caf

View File

@@ -237,8 +237,9 @@ jobs:
git config user.name "Dependency Bot" git config user.name "Dependency Bot"
git config user.email "bot@gitea.actions" git config user.email "bot@gitea.actions"
# Set up authenticated remote URL # Set up authenticated remote URL (works with both http and https)
git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url }}/${{ github.repository }}" SERVER_URL="${{ github.server_url }}"
git remote set-url origin "${SERVER_URL/\/\//\/\/${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@}/${{ github.repository }}"
# Commit and push changes # Commit and push changes
git checkout -b "deps/auto-upgrade-${{ github.run_number }}" git checkout -b "deps/auto-upgrade-${{ github.run_number }}"