Klon-Adresse aus dem Server-URL ableiten statt https annehmen
Deploy auf den Timer-Server / deploy (push) Failing after 11s

Gitea gibt in GITHUB_SERVER_URL seine interne Adresse an (http://192.168.1.5:3000).
Die alte Zeile setzte https davor und baute daraus 'https://http://...'.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-04 17:59:25 +02:00
co-authored by Claude Opus 5
parent 307fec6b99
commit c2e9f4d2d2
+4 -1
View File
@@ -36,7 +36,10 @@ jobs:
rm -rf quelle && mkdir quelle && cd quelle
git init -q
git remote add origin "https://x-access-token:$TOKEN@${GITHUB_SERVER_URL#https://}/$GITHUB_REPOSITORY.git"
# Gitea meldet hier seine interne Adresse (http://192.168.1.5:3000),
# deshalb Schema und Rest getrennt behandeln statt https anzunehmen.
URL="${GITHUB_SERVER_URL%/}"
git remote add origin "${URL%%://*}://x-access-token:$TOKEN@${URL#*://}/$GITHUB_REPOSITORY.git"
# Nach SHA, falls der Server das nicht erlaubt ersatzweise nach Branch.
git fetch -q --depth 1 origin "$GITHUB_SHA" || git fetch -q --depth 1 origin "$GITHUB_REF_NAME"
git checkout -q FETCH_HEAD