1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-26 03:30:02 +08:00

feat: update sync ci

This commit is contained in:
喜欢芝士的妹妹
2023-08-30 00:25:54 +08:00
parent f1adb3796d
commit c357991e49

24
.github/workflows/sync-upstream.yml vendored Normal file
View File

@@ -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