File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments