We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d6e01f commit 056f30fCopy full SHA for 056f30f
.github/workflows/cnb.yml
@@ -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