update ci
This commit is contained in:
parent
aaa141aaf7
commit
2184cbcb7e
|
|
@ -17,19 +17,13 @@ jobs:
|
||||||
|
|
||||||
- name: Set up mirror remote (http)
|
- name: Set up mirror remote (http)
|
||||||
run: |
|
run: |
|
||||||
mirror_url="$(echo "$MIRROR_URL" \
|
mirror_url="http://weichengwu:cKk2HUP8@123.60.153.169:3006/fucai/fucai-redeem.git"
|
||||||
| sed -E "s#^http://#http://${MIRROR_USERNAME}:${MIRROR_PASSWORD}@#")"
|
|
||||||
if git remote get-url mirror >/dev/null 2>&1; then
|
if git remote get-url mirror >/dev/null 2>&1; then
|
||||||
git remote set-url mirror "$mirror_url"
|
git remote set-url mirror "$mirror_url"
|
||||||
else
|
else
|
||||||
git remote add mirror "$mirror_url"
|
git remote add mirror "$mirror_url"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
env:
|
|
||||||
MIRROR_USERNAME: ${{ secrets.MIRROR_USERNAME }}
|
|
||||||
MIRROR_PASSWORD: ${{ secrets.MIRROR_PASSWORD }}
|
|
||||||
MIRROR_URL: http://123.60.153.169:3006/fucai/fucai-redeem
|
|
||||||
|
|
||||||
- name: Push to mirror
|
- name: Push to mirror
|
||||||
run: |
|
run: |
|
||||||
git push --mirror mirror
|
git push --mirror mirror
|
||||||
Loading…
Reference in New Issue