fix(ci): remove GitHub checkout dependency
Some checks failed
CI and Production Smoke / smoke (push) Has been cancelled

This commit is contained in:
ogt
2026-07-18 19:44:05 +08:00
parent b7a733f44f
commit f110ac602f

View File

@@ -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: |