From d9690c8b4c208ae8420ba49b451e2f27762f3225 Mon Sep 17 00:00:00 2001 From: xpcool Date: Sat, 22 Aug 2026 14:47:54 +0800 Subject: [PATCH] ci: checkout with --branch ref_name --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a300b61..d854182 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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)