forked from sngxpro/AutoSyncScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
微信公众号少年歌行PRO
authored
Mar 25, 2021
1 parent
ede06b4
commit a00dcb5
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## chavyleung 新仓库自动定时同步代码 ,教程公众号文章讲过了,不废话了,地址https://mp.weixin.qq.com/s/fcI4vQHD8TNajvTML9g3AA | ||
|
||
## 每隔3小时拉取一次作者脚本到自己仓库的分支 | ||
|
||
|
||
|
||
name:chavyleung-sync | ||
on: | ||
schedule: | ||
- cron: '9 */3 * * *' | ||
workflow_dispatch: | ||
watch: | ||
types: started | ||
repository_dispatch: | ||
types: sync-chavyleung-scripts | ||
jobs: | ||
repo-sync: | ||
env: | ||
PAT: ${{ secrets.PAT }} | ||
runs-on: ubuntu-latest | ||
if: github.event.repository.owner.id == github.event.sender.id | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: sync chavyleung-scripts | ||
uses: repo-sync/github-sync@v2 | ||
if: env.PAT | ||
with: | ||
source_repo: "https://github.com/chavyleung/scripts.git" | ||
source_branch: "master" | ||
destination_branch: "chavyleung" | ||
github_token: ${{ secrets.PAT }} |