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:
parent
1dd6d34704
commit
7706a88854
9
.github/workflows/sync_coding_net.yml
vendored
9
.github/workflows/sync_coding_net.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user