0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-05 08:25:28 +00:00

add sync repo action

This commit is contained in:
firedcto@gmail.com 2024-10-03 18:17:12 +08:00
parent 1dd6d34704
commit 7706a88854

View File

@ -19,11 +19,14 @@ jobs:
cd ok-wuthering-waves.git cd ok-wuthering-waves.git
- name: Set up Git credentials - name: Set up Git credentials
env:
CODING_USERNAME: ${{ secrets.CODING_USERNAME }}
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
run: | run: |
git config --global user.name "${{ secrets.CODING_USERNAME }}" git config --global credential.helper store
git config --global user.password "${{ secrets.CODING_PASSWORD }}" echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > ~/.git-credentials
- name: Push to Coding.net - name: Push to Coding.net
run: | run: |
git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
git push --mirror coding --force git push --mirror coding --force