Compare commits
No commits in common. "2184cbcb7efe184411944d34f553862344a7bc47" and "0157693b347b137abfcd341e12bf33da1c2260fe" have entirely different histories.
2184cbcb7e
...
0157693b34
|
|
@ -1,29 +0,0 @@
|
|||
name: Mirror to smartjingrui's git
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on:
|
||||
labels: mac-mini-2018
|
||||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # 必须 0,否则无法完整 mirror
|
||||
|
||||
- name: Set up mirror remote (http)
|
||||
run: |
|
||||
mirror_url="http://weichengwu:cKk2HUP8@123.60.153.169:3006/fucai/fucai-redeem.git"
|
||||
if git remote get-url mirror >/dev/null 2>&1; then
|
||||
git remote set-url mirror "$mirror_url"
|
||||
else
|
||||
git remote add mirror "$mirror_url"
|
||||
fi
|
||||
|
||||
- name: Push to mirror
|
||||
run: |
|
||||
git push --mirror mirror
|
||||
Loading…
Reference in New Issue