From cdc816467d770dfe15bd9ead15a282ec63c8f73b Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 May 2026 12:00:48 +0800 Subject: [PATCH] fix: replace actions/checkout with native git clone to remove GitHub dependency The workflow previously used actions/checkout@v4 which fetches from GitHub. Gitea runner cannot access GitHub due to timeout. Replace with inline git init + fetch using GITHUB_SERVER_URL / GITHUB_REPOSITORY env vars provided by Gitea Actions runtime. --- .gitea/workflows/wheel-pipeline.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/wheel-pipeline.yaml b/.gitea/workflows/wheel-pipeline.yaml index fe2f953..0ff7659 100644 --- a/.gitea/workflows/wheel-pipeline.yaml +++ b/.gitea/workflows/wheel-pipeline.yaml @@ -17,7 +17,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + run: | + git init + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" + git fetch --depth 1 origin "${GITHUB_SHA}" + git checkout "${GITHUB_SHA}" - name: Show environment info run: |