Skip to content

获取最新脚本 #5833

获取最新脚本

获取最新脚本 #5833

Workflow file for this run

name: 获取最新脚本
on:
schedule:
- cron: '5 */3 * * *'
workflow_dispatch:
watch:
types: started
repository_dispatch:
types: sync-zero205-scripts
jobs:
repo-sync:
env:
PAT: ${{ secrets.PAT }} #此处PAT需要申请,教程详见:https://www.jianshu.com/p/bb82b3ad1d11
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} # 我自己同步到gitee使用,其他人可忽略
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 lukeys-scripts
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/lukesyy/jd_yun.git"
source_branch: "main"
destination_branch: "main"
github_token: ${{ secrets.PAT }}