Add files via upload

This commit is contained in:
dlgt7
2023-11-20 17:28:47 +08:00
committed by GitHub
parent ef818a0b88
commit c62ade8610
4 changed files with 129 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
name: autoupdate
on:
# 推送代码后触发
push:
# 定时任务触发,使用 cron 规则,这里默认一小时执行一次 '0 * * * *' '0 */6 * * *' 12小时
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Merge upstream
run: |
# 使用自己的用户名替换 username
git config --global user.name 'dlgt7'
git config --global user.email '120@qq.com'
git pull --unshallow
# 自行替换要同步的上游仓库地址
git remote add upstream https://github.com/FongMi/CatVodSpider.git
git fetch upstream
git checkout main
git merge upstream/main
git pull origin main
git push origin main