From 187a501f4b34f0fd9c9c9c158bdef6c101516640 Mon Sep 17 00:00:00 2001 From: LoGin Date: Tue, 22 Apr 2025 21:01:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=88=B0CNB.cool=E7=9A=84GitHub=20Actions=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=20(#1136)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: longjin --- .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 00000000..393cfc19 --- /dev/null +++ b/.github/workflows/sync-to-cnb.yml @@ -0,0 +1,22 @@ +name: Sync to CNB.cool +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/DragonOS-Community/DragonOS.git" \ + -e PLUGIN_AUTH_TYPE="https" \ + -e PLUGIN_USERNAME="cnb" \ + -e PLUGIN_PASSWORD=${{ secrets.CNB_GIT_PASSWORD }} \ + -e PLUGIN_FORCE="true" \ + tencentcom/git-sync