Update Sync.yml
This commit is contained in:
parent
65c6817405
commit
d8f987f492
26
.github/工作流程/Sync.yml
vendored
26
.github/工作流程/Sync.yml
vendored
@ -1,18 +1,18 @@
|
|||||||
# .github/workflows/sync.yml
|
|
||||||
name: Sync Fork
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: # push 时触发, 主要是为了测试配置有没有问题
|
push:
|
||||||
schedule:
|
branches:
|
||||||
- cron: '*/5 * * * *' # 每5分钟触发, 对于一些更新不那么频繁的项目可以设置为每天一次, 低碳一点
|
-master
|
||||||
workflow_dispatch: # on button click
|
|
||||||
jobs:
|
jobs:
|
||||||
repo-sync:
|
update_external_airflow_fork:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: tgymnich/fork-sync@v1.2.1
|
- uses: TobKed/github-forks-sync-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # 令牌
|
||||||
owner: box # fork 的上游仓库 user
|
upstream_repository: liu673cn/box # 上游仓库
|
||||||
head: main # fork 的上游仓库 branch
|
target_repository: woshishiq1/mao # 你要推送的仓库
|
||||||
base: main # 本地仓库 branch
|
upstream_branch: master # 默认是拉取上游仓库的master分支
|
||||||
|
target_branch: master # 默认推送到你的仓库master分支
|
||||||
|
force: true # 是否强制推送
|
||||||
|
tags: true # 确定是否使用-tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user