ci: checkout with --branch ref_name
All checks were successful
Build and Deploy (tool.xpcool.com) / build-and-deploy (push) Successful in 1m1s

This commit is contained in:
xpcool 2026-08-22 14:47:54 +08:00
parent 82df985c2a
commit 57f7e71706

View File

@ -19,7 +19,7 @@ jobs:
- name: Checkout (local Gitea, no external actions)
run: |
git clone --depth 1 https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git .
git clone --depth 1 --branch "${{ github.ref_name }}" https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git .
git checkout ${{ github.sha }}
- name: Use npmmirror registry (faster in CN)