Skip to content

chavyleung-sync

chavyleung-sync #3449

Workflow file for this run

name: chavyleung-sync
on:
push:
branches:
- master
schedule:
# 格林威治时间 (GMT) 每日01时开始执行
- cron: '0 1 * * *'
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 }}