Skip to content

Commit 8c7c81a

Browse files
authored
ci: update sync cnb (#912)
1 parent c68c4fb commit 8c7c81a

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/sync-cnb.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@ jobs:
88
if: ${{ github.repository == 'Tencent/tdesign-vue-next-starter' && github.event_name == 'push' }}
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212
with:
1313
fetch-depth: 0
14-
14+
1515
- name: Sync to CNB Repository
16-
run: |
17-
docker run --rm \
18-
-v ${{ github.workspace }}:${{ github.workspace }} \
19-
-w ${{ github.workspace }} \
20-
-e PLUGIN_TARGET_URL="https://cnb.cool/tencent/tdesign/tdesign-vue-next-starter.git" \
21-
-e PLUGIN_AUTH_TYPE="https" \
22-
-e PLUGIN_USERNAME="cnb" \
23-
-e PLUGIN_PASSWORD=${{ secrets.CNB_TOKEN }} \
24-
-e PLUGIN_PUSH_TAGS="true" \
25-
-e PLUGIN_FORCE="true" \
26-
tencentcom/git-sync
16+
uses: docker://tencentcom/git-sync
17+
env:
18+
PLUGIN_TARGET_URL: "https://cnb.cool/tencent/tdesign/tdesign-vue-next-starter.git"
19+
PLUGIN_AUTH_TYPE: "https"
20+
PLUGIN_USERNAME: "cnb"
21+
PLUGIN_PASSWORD: ${{ secrets.CNB_TOKEN }}
22+
PLUGIN_FORCE: "true"
2723

2824
sync-delete-branch:
2925
if: ${{ github.repository == 'Tencent/tdesign-vue-next-starter' && github.event_name == 'delete' && github.event.ref_type == 'branch' }}

0 commit comments

Comments
 (0)