mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-28 12:40:17 +08:00
24 lines
505 B
YAML
24 lines
505 B
YAML
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 |