Skip to content

Commit 9b3e4ac

Browse files
bingggcursoragent
andcommitted
ci: add sync-to-cnb workflow for CNB mirror
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 77d4b9d commit 9b3e4ac

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/sync-to-cnb.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Sync to CNB
2+
3+
on: [push]
4+
5+
jobs:
6+
sync:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
13+
- name: Sync to CNB Repository
14+
run: |
15+
docker run --rm \
16+
-v ${{ github.workspace }}:${{ github.workspace }} \
17+
-w ${{ github.workspace }} \
18+
-e PLUGIN_TARGET_URL="https://cnb.cool/tencent/cloud/cloudbase/skills.git" \
19+
-e PLUGIN_AUTH_TYPE="https" \
20+
-e PLUGIN_USERNAME="cnb" \
21+
-e PLUGIN_PASSWORD="${{ secrets.CNB_TOKEN }}" \
22+
-e PLUGIN_FORCE="true" \
23+
tencentcom/git-sync

0 commit comments

Comments
 (0)