fix: 添加手动 Checkout 步骤 (Gitea Actions 不会自动 clone 仓库)
Some checks failed
Release / build-and-release (push) Failing after 11m51s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 11:34:55 +08:00
parent a12304a6a4
commit cd35b1732a

View File

@@ -9,6 +9,16 @@ jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
run: |
REPO="${{ gitea.repository }}"
TAG="${{ gitea.ref_name }}"
git clone --depth 1 --branch "${TAG}" \
"https://zhilv:${GITEA_TOKEN}@gitea.kmux.cn/${REPO}.git" .
git log --oneline -1
- name: Setup Node.js
run: |
apt-get update -qq