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
26bfa33739
commit
f85e23536c
29
.github/workflows/sync_repos.yml
vendored
Normal file
29
.github/workflows/sync_repos.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user