GitHub Copilot真好用(
This commit is contained in:
parent
976a391e58
commit
0a342ce7aa
18
.github/workflows/mirror.yml
vendored
18
.github/workflows/mirror.yml
vendored
@ -15,19 +15,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.WORK_TOKEN }}
|
token: ${{ secrets.WORK_TOKEN }}
|
||||||
|
|
||||||
- name: set git config
|
- name: mirror branches
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email 3695888@qq.com
|
git config --global user.email 3695888@qq.com
|
||||||
git config --global user.name shenjack-action
|
git config --global user.name shenjack-action
|
||||||
|
|
||||||
- name: add remote repository
|
|
||||||
run: |
|
|
||||||
git remote add gitea http://shenjack.top:5100/ARS/ars-tools.git
|
git remote add gitea http://shenjack.top:5100/ARS/ars-tools.git
|
||||||
|
git checkout -b temp
|
||||||
- name: fetch from remote
|
git fetch gitea
|
||||||
run: |
|
git checkout main
|
||||||
git fetch gitea '*:*'
|
git branch -d temp
|
||||||
|
git push origin 'refs/remotes/gitea/*:refs/heads/*'
|
||||||
- name: push to origin
|
|
||||||
run: |
|
|
||||||
git push origin --mirror
|
|
Loading…
Reference in New Issue
Block a user