update ci

This commit is contained in:
weichengwu 2025-11-18 09:27:35 +08:00
parent 3a9a506791
commit 42a3f5e5a7
1 changed files with 1 additions and 7 deletions

View File

@ -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-admin.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-admin
- name: Push to mirror - name: Push to mirror
run: | run: |
git push --mirror mirror git push --mirror mirror