将代码同步至 CNB (#4994)
This commit is contained in:
18
.github/workflows/cnb.yml
vendored
Normal file
18
.github/workflows/cnb.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user