Skip to content

Commit 7ebac75

Browse files
committed
测试推送方式
1 parent 147c7d3 commit 7ebac75

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ jobs:
4949
steps:
5050
- name: Checkout code
5151
uses: actions/checkout@v3
52-
52+
with:
53+
fetch-depth: 0
5354
- name: Configure Git
5455
run: |
5556
git config --local user.name "GitHub Actions"
5657
git config --local user.email "actions@github.com"
5758
5859
- name: Push to Gitee
5960
run: |
60-
run: |
61-
git push --force https://oauth2:${{ secrets.GITEE_TOKEN }}@gitee.com/krrcream/krrcream-Toolkit.git --all
62-
git push --force https://oauth2:${{ secrets.GITEE_TOKEN }}@gitee.com/krrcream/krrcream-Toolkit.git --tags
63-
git push --force https://oauth2:${{ secrets.GITEE_TOKEN }}@gitee.com/krrcream/krrcream-Toolkit.git master
61+
git ls-remote --tags origin | sed 's/.*\///' | xargs -I {} git push --delete origin {}
62+
git push --force https://oauth2:${{ secrets.GITEE_TOKEN }}@gitee.com/krrcream/krrcream-Toolkit.git --all
63+
git push --force https://oauth2:${{ secrets.GITEE_TOKEN }}@gitee.com/krrcream/krrcream-Toolkit.git --tags
6464
- name: Push to Gitee
6565
run: |
6666
git push gitee HEAD:master

0 commit comments

Comments
 (0)