add action

pull/120/head
tanzhen 4 years ago committed by GitHub
parent b94d7c67f4
commit d9ff7bd62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save