fix: 添加手动 Checkout 步骤 (Gitea Actions 不会自动 clone 仓库)
Some checks failed
Release / build-and-release (push) Failing after 11m51s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user