Use the self-hosted repository URL without the .git suffix so authenticated fetch resolves correctly in the Gitea runner. Made-with: Cursor
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
git init .
|
git init .
|
||||||
git remote add origin "https://oauth2:${{ github.token }}@git.produktor.io/${{ github.repository }}.git"
|
git remote add origin "https://oauth2:${{ github.token }}@git.produktor.io/${{ github.repository }}"
|
||||||
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
|
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
|
||||||
git checkout --detach FETCH_HEAD
|
git checkout --detach FETCH_HEAD
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user