fix(ci): remove GitHub checkout dependency
Some checks failed
CI and Production Smoke / smoke (push) Has been cancelled
Some checks failed
CI and Production Smoke / smoke (push) Has been cancelled
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user