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 17:59:27 +08:00
parent 26bfa33739
commit f85e23536c

29
.github/workflows/sync_repos.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: sync repos
on:
push:
branches:
- main
jobs:
clone-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Clone GitHub repository
run: |
git clone --mirror https://github.com/ok-oldking/ok-wuthering-waves.git
cd ok-wuthering-waves.git
- name: Set up Git credentials
run: |
git config --global user.name "${{ secrets.CODING_USERNAME }}"
git config --global user.password "${{ secrets.CODING_PASSWORD }}"
- 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