fix(core): add remote
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history for all branches
|
||||
fetch-depth: 0 # Fetch all history for all branches
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
@@ -22,11 +22,12 @@ jobs:
|
||||
|
||||
- name: Add mirror remote and push
|
||||
env:
|
||||
GIT_USER_NAME: ${{ vars.GIT_USER_NAME }}
|
||||
MIRROR_URL: ${{ secrets.MIRROR_REPO_URL }}
|
||||
MIRROR_TOKEN: ${{ secrets.MIRROR_REPO_TOKEN }}
|
||||
run: |
|
||||
# Add mirror remote with authentication
|
||||
git remote add mirror https://$MIRROR_TOKEN@${MIRROR_URL#https://}
|
||||
|
||||
git remote add mirror https://$GIT_USER_NAME:$MIRROR_TOKEN@${MIRROR_URL#https://}
|
||||
|
||||
# Push to mirror
|
||||
git push mirror main --force
|
||||
|
||||
Reference in New Issue
Block a user