fix(ci): clone repository explicitly in gitea workflow
Some checks failed
CI / verify (push) Failing after 3s

This commit is contained in:
Your Name
2026-05-06 11:53:30 +08:00
parent 4d07c8f618
commit 43bcb499d0

View File

@@ -11,11 +11,20 @@ jobs:
verify: verify:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
WORKSPACE_DIR: ${{ github.workspace }} WORKSPACE_DIR: ${{ github.workspace }}/repo
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
REPO_SHA: ${{ github.sha }}
steps: steps:
- name: Checkout repository
run: |
rm -rf "$WORKSPACE_DIR"
git clone --depth 1 "$REPO_URL" "$WORKSPACE_DIR"
cd "$WORKSPACE_DIR"
git fetch --depth 1 origin "$REPO_SHA"
git checkout "$REPO_SHA"
- name: Verify Go toolchain - name: Verify Go toolchain
run: | run: |
echo "$WORKSPACE_DIR"
cd "$WORKSPACE_DIR" cd "$WORKSPACE_DIR"
go version go version
pwd pwd