chore: use mirror clone in ci.yml for PRs

This commit is contained in:
Horror Proton
2023-03-12 23:47:30 +08:00
parent b6ea70532f
commit 3fa4332b8e

View File

@@ -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: |