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