From 4f6f1fd01737173dd2dff6e1e0549d114ae91a5b Mon Sep 17 00:00:00 2001 From: SukkaW Date: Mon, 13 Jan 2025 22:25:49 +0800 Subject: [PATCH] CI: when deploying to git, clone w/o tags --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5468894b..80fb9326 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -130,7 +130,7 @@ jobs: - name: Upload Dist to GitLab continue-on-error: true run: | - git clone --filter=tree:0 https://${GITLAB_TOKEN_NAME}:${GITLAB_TOKEN}@gitlab.com/SukkaW/ruleset.skk.moe.git ./deploy-git + git clone --filter=tree:0 --no-tags --prune https://${GITLAB_TOKEN_NAME}:${GITLAB_TOKEN}@gitlab.com/SukkaW/ruleset.skk.moe.git ./deploy-git cd ./deploy-git git config --global push.default matching git config --global user.email "${GITLAB_EMAIL}" @@ -150,7 +150,7 @@ jobs: - name: Upload Dist to GitHub continue-on-error: true run: | - git clone --filter=tree:0 https://${GH_USER}:${GH_TOKEN}@github.com/SukkaLab/ruleset.skk.moe.git ./deploy-git + git clone --filter=tree:0 --no-tags --prune https://${GH_USER}:${GH_TOKEN}@github.com/SukkaLab/ruleset.skk.moe.git ./deploy-git cd ./deploy-git git config --global push.default matching git config --global user.email "${GH_EMAIL}"