Skip to content

Commit 6dac951

Browse files
Create sync_to_cnb.yml
1 parent 33bdefc commit 6dac951

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/sync_to_cnb.yml

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

0 commit comments

Comments
 (0)