From c2e9f4d2d293a059fb7a6b4b793aabc1404a45df Mon Sep 17 00:00:00 2001 From: Kerim Atilgan Date: Fri, 4 Sep 2026 17:59:25 +0200 Subject: [PATCH] Klon-Adresse aus dem Server-URL ableiten statt https annehmen 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) --- .gitea/workflows/deploy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 0594000..834e700 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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