Klon-Adresse aus dem Server-URL ableiten statt https annehmen
Deploy auf den Timer-Server / deploy (push) Failing after 11s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user