0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-03 09:25:19 +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
- name: Set up Git credentials
env:
CODING_USERNAME: ${{ secrets.CODING_USERNAME }}
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
run: |
git config --global user.name "${{ secrets.CODING_USERNAME }}"
git config --global user.password "${{ secrets.CODING_PASSWORD }}"
git config --global credential.helper store
echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > ~/.git-credentials
- name: Push to Coding.net
run: |
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