Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
微信公众号少年歌行PRO authored Mar 28, 2021
1 parent 32188d8 commit 88e5bc9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lxk0301-sync
on:
schedule:
- cron: '4 */3 * * *'
workflow_dispatch:
watch:
types: started
repository_dispatch:
types: sync-ElsaKing-DogDog
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 ElsaKing-DogDog
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/ElsaKing/DogDog.git"
source_branch: "main"
destination_branch: "lxk0301"
github_token: ${{ secrets.PAT }}

0 comments on commit 88e5bc9

Please sign in to comment.