From 3fa4332b8e98b3ab7fe2c7aac972a4eb5da13ffe Mon Sep 17 00:00:00 2001 From: Horror Proton <107091537+horror-proton@users.noreply.github.com> Date: Sun, 12 Mar 2023 23:47:30 +0800 Subject: [PATCH] chore: use mirror clone in `ci.yml` for PRs --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18726d9fc5..d3a24e9013 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,8 +27,9 @@ jobs: git init cp $GITHUB_WORKSPACE/temp/.git/config ./.git rm -rf $GITHUB_WORKSPACE/temp + git config remote.origin.fetch '+refs/*:refs/*' git fetch --filter=tree:0 - git checkout ${{ github.ref_name }} + git checkout ${{ github.ref }} - id: set_tag run: |