Skip to content

Commit 056f30f

Browse files
authored
将代码同步至 CNB (#4994)
1 parent 2d6e01f commit 056f30f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/cnb.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: cnb.yml
2+
3+
on:
4+
push
5+
6+
jobs:
7+
run:
8+
if: ${{ github.repository == 'HMCL-dev/HMCL' }}
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Mirror GitHub to CNB
12+
env:
13+
SOURCE_REPO: HMCL-dev/HMCL
14+
TARGET_REPO: HMCL-dev/HMCL
15+
run: |
16+
git clone --mirror "https://github.com/$SOURCE_REPO.git" -- repo
17+
cd repo
18+
git push --mirror "https://${{ secrets.CNB_SYNC_USERNAME }}:${{ secrets.CNB_SYNC_TOKEN }}@cnb.cool/$TARGET_REPO.git"

0 commit comments

Comments
 (0)