From d476a6e09432c8ed103cb0519966a3a84e25bed0 Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Wed, 29 Oct 2025 20:53:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20CNB=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-to-cnb.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/sync-to-cnb.yml diff --git a/.github/workflows/sync-to-cnb.yml b/.github/workflows/sync-to-cnb.yml new file mode 100644 index 0000000..260d7c4 --- /dev/null +++ b/.github/workflows/sync-to-cnb.yml @@ -0,0 +1,22 @@ +name: Sync to CNB +on: [push] + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Sync to CNB Repository + run: | + docker run --rm \ + -v ${{ github.workspace }}:${{ github.workspace }} \ + -w ${{ github.workspace }} \ + -e PLUGIN_TARGET_URL="https://cnb.cool/chaoszhu/easynode.git" \ + -e PLUGIN_AUTH_TYPE="https" \ + -e PLUGIN_USERNAME="cnb" \ + -e PLUGIN_PASSWORD=${{ secrets.CNB_ACCESS_TOKEN }} \ + -e PLUGIN_SYNC_MODE="rebase" \ + tencentcom/git-sync \ No newline at end of file