add action
parent
b94d7c67f4
commit
d9ff7bd62e
@ -0,0 +1,25 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: Update code
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- forkupdate
|
||||||
|
schedule:
|
||||||
|
- cron: 0 */12 * * *
|
||||||
|
# 每隔12小时
|
||||||
|
jobs:
|
||||||
|
update_external_airflow_fork:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: TobKed/github-forks-sync-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }} # 令牌
|
||||||
|
upstream_repository: DivineEngine/Profiles # 上游仓库
|
||||||
|
target_repository: tanzhen/Profiles # 你要推送的仓库
|
||||||
|
upstream_branch: master # 默认是拉取上游仓库的master分支
|
||||||
|
target_branch: master # 默认推送到你的仓库master分支
|
||||||
|
force: true # 是否强制推送
|
||||||
|
tags: true # 确定是否使用-tags
|
Loading…
Reference in New Issue