19 lines
487 B
YAML
19 lines
487 B
YAML
name: cnb.yml
|
|
|
|
on:
|
|
push
|
|
|
|
jobs:
|
|
run:
|
|
if: ${{ github.repository == 'HMCL-dev/HMCL' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Mirror GitHub to CNB
|
|
env:
|
|
SOURCE_REPO: HMCL-dev/HMCL
|
|
TARGET_REPO: HMCL-dev/HMCL
|
|
run: |
|
|
git clone --mirror "https://github.com/$SOURCE_REPO.git" -- repo
|
|
cd repo
|
|
git push --mirror "https://${{ secrets.CNB_SYNC_USERNAME }}:${{ secrets.CNB_SYNC_TOKEN }}@cnb.cool/$TARGET_REPO.git"
|