This commit is contained in:
2025-04-30 19:27:31 +08:00
parent d4aa63eea2
commit 5e03ef2dd9
7 changed files with 82 additions and 131 deletions

View File

@@ -1,5 +1,11 @@
name: Sync to CNB
on: [push]
on:
push:
branches:
# - main
- 'releases/**'
workflow_dispatch:
# This workflow is triggered on push events to the repository.
jobs:
sync:
@@ -8,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sync to CNB Repository
run: |
docker run --rm \
@@ -19,4 +25,4 @@ jobs:
-e PLUGIN_USERNAME="cnb" \
-e PLUGIN_PASSWORD=${{ secrets.GIT_PASSWORD }} \
-e PLUGIN_SYNC_MODE="rebase" \
tencentcom/git-sync
tencentcom/git-sync