From f110ac602f9d48f96baad7e702ffb9be128862b7 Mon Sep 17 00:00:00 2001 From: ogt Date: Sat, 18 Jul 2026 19:44:05 +0800 Subject: [PATCH] fix(ci): remove GitHub checkout dependency --- .gitea/workflows/deploy.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9051b32..3c083fc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -4,13 +4,25 @@ on: push: branches: - main + paths-ignore: + - "docs/**" + - "**/*.md" jobs: smoke: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - - name: Checkout repository - uses: actions/checkout@v3 + - name: Checkout exact source from Gitea + run: | + set -euo pipefail + repo_url="${GITHUB_SERVER_URL:-http://192.168.0.110:3001}/${GITHUB_REPOSITORY:-wooo/agent-bounty-protocol}.git" + ref="${GITHUB_SHA:?missing GITHUB_SHA}" + git init . + git remote remove origin 2>/dev/null || true + git remote add origin "$repo_url" + git fetch --no-tags --depth=1 origin "$ref" + git checkout --force --detach FETCH_HEAD - name: Validate shell scripts run: |