GitHub Copilot真好用(

This commit is contained in:
shenjack 2023-12-16 17:08:21 +08:00
parent 976a391e58
commit 0a342ce7aa
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -15,19 +15,13 @@ jobs:
with:
token: ${{ secrets.WORK_TOKEN }}
- name: set git config
- name: mirror branches
run: |
git config --global user.email 3695888@qq.com
git config --global user.name shenjack-action
- name: add remote repository
run: |
git remote add gitea http://shenjack.top:5100/ARS/ars-tools.git
- name: fetch from remote
run: |
git fetch gitea '*:*'
- name: push to origin
run: |
git push origin --mirror
git checkout -b temp
git fetch gitea
git checkout main
git branch -d temp
git push origin 'refs/remotes/gitea/*:refs/heads/*'