Skip to content

NobyDa-sync

NobyDa-sync #6391

Workflow file for this run

## NobyDa 新仓库自动定时同步代码 ,教程公众号文章讲过了,不废话了,地址https://mp.weixin.qq.com/s/fcI4vQHD8TNajvTML9g3AA
## 每隔3小时拉取一次作者脚本到自己仓库的分支
name: NobyDa-sync
on:
schedule:
- cron: '6 */3 * * *'
workflow_dispatch:
watch:
types: started
repository_dispatch:
types: sync-NobyDa-Script
jobs:
repo-sync:
env:
PAT: ${{ secrets.PAT }}
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: sync NobyDa-Script
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/NobyDa/Script.git"
source_branch: "master"
destination_branch: "NobyDa"
github_token: ${{ secrets.PAT }}