From c357991e49a1513f67b92167426c57d68c711c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=9C=E6=AC=A2=E8=8A=9D=E5=A3=AB=E7=9A=84=E5=A6=B9?= =?UTF-8?q?=E5=A6=B9?= Date: Wed, 30 Aug 2023 00:25:54 +0800 Subject: [PATCH] feat: update sync ci --- .github/workflows/sync-upstream.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sync-upstream.yml diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml new file mode 100644 index 0000000..8f3c150 --- /dev/null +++ b/.github/workflows/sync-upstream.yml @@ -0,0 +1,24 @@ +name: Sync with Upstream + +on: +# push: +# branches: +# - main # 指定触发同步的分支 + # 手动触发部署 + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Sync with Upstream + run: | + git remote add upstream https://github.com/142vip/408CSFamily.git + git fetch upstream + git checkout main + git merge upstream/main + git push origin main \ No newline at end of file