From ca5df31d54d7b40a6bbc258f9089960fe7d77ca9 Mon Sep 17 00:00:00 2001 From: obroccolio Date: Sun, 30 Aug 2026 15:06:32 +0800 Subject: [PATCH] ci: use direct git checkout for Gitea Actions --- .gitea/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 28f556e..49ff5a6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,7 +14,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + set -euo pipefail + GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}" + git init -q . + git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git" + git fetch -q --depth 1 origin "$GITHUB_SHA" + git checkout -q "$GITHUB_SHA" - name: Login Harbor run: | @@ -46,7 +52,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout deploy config - uses: actions/checkout@v4 + run: | + set -euo pipefail + GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}" + git init -q . + git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git" + git fetch -q --depth 1 origin "$GITHUB_SHA" + git checkout -q "$GITHUB_SHA" - name: Deploy WordCloud run: |