From 1992db65b8dc83d81f50ed2eb4f836bba268b673 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 21 Jun 2026 21:42:45 -0400 Subject: [PATCH] fix(ci): use github.server_url template expression instead of missing GITEA_SERVER_URL env --- .gitea/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 5fe08e9..fdee501 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -34,8 +34,11 @@ jobs: GIT_SSL_NO_VERIFY: "1" run: | apk add --no-cache git + SERVER="${{ github.server_url }}" + REPO="${{ github.repository }}" + TOKEN="${{ github.token }}" git clone --depth 1 \ - "https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \ + "https://x-access-token:${TOKEN}@${SERVER#https://}/${REPO}.git" \ . git fetch --depth 1 origin "${{ github.sha }}" git checkout "${{ github.sha }}" @@ -69,8 +72,11 @@ jobs: GIT_SSL_NO_VERIFY: "1" run: | apk add --no-cache git + SERVER="${{ github.server_url }}" + REPO="${{ github.repository }}" + TOKEN="${{ github.token }}" git clone --depth 1 \ - "https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \ + "https://x-access-token:${TOKEN}@${SERVER#https://}/${REPO}.git" \ . git fetch --depth 1 origin "${{ github.sha }}" git checkout "${{ github.sha }}" @@ -118,8 +124,11 @@ jobs: GIT_SSL_NO_VERIFY: "1" run: | apk add --no-cache git + SERVER="${{ github.server_url }}" + REPO="${{ github.repository }}" + TOKEN="${{ github.token }}" git clone --depth 1 \ - "https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \ + "https://x-access-token:${TOKEN}@${SERVER#https://}/${REPO}.git" \ . git fetch --depth 1 origin "${{ github.sha }}" git checkout "${{ github.sha }}"