Files
TVbox-interface/FMworkflows/Merge upstream fongmi→fongmi.yml
2024-08-06 06:29:03 +08:00

28 lines
823 B
YAML

name: Merge upstream fongmi→fongmi
on:
# 推送代码后触发
push:
# 定时任务触发,使用 cron 规则,这里默认一小时执行一次
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Merge upstream
run: |
# 使用自己的用户名替换 username
git config --global user.name 'xinyi1984'
git config --global user.email 'xinyi1984@users.noreply.github.com'
git pull --unshallow
# 自行替换要同步的上游仓库地址
git remote add upstream https://github.com/FongMi/TV.git
git fetch upstream
git checkout --track origin/fongmi
git merge upstream/fongmi
git push origin fongmi