update ci
This commit is contained in:
parent
3a9a506791
commit
42a3f5e5a7
|
|
@ -17,19 +17,13 @@ jobs:
|
|||
|
||||
- name: Set up mirror remote (http)
|
||||
run: |
|
||||
mirror_url="$(echo "$MIRROR_URL" \
|
||||
| sed -E "s#^http://#http://${MIRROR_USERNAME}:${MIRROR_PASSWORD}@#")"
|
||||
mirror_url="http://weichengwu:cKk2HUP8@123.60.153.169:3006/fucai/fucai-admin.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
|
||||
|
||||
env:
|
||||
MIRROR_USERNAME: ${{ secrets.MIRROR_USERNAME }}
|
||||
MIRROR_PASSWORD: ${{ secrets.MIRROR_PASSWORD }}
|
||||
MIRROR_URL: http://123.60.153.169:3006/fucai/fucai-admin
|
||||
|
||||
- name: Push to mirror
|
||||
run: |
|
||||
git push --mirror mirror
|
||||
Loading…
Reference in New Issue