feature: automatically sync fork from the original repo

This commit is contained in:
y1ndan 2020-12-04 02:00:08 +08:00
parent 5a389246d3
commit ce2e4588e2
2 changed files with 25 additions and 3 deletions

View File

@ -1,16 +1,19 @@
name: "Genshin Impact Helper"
on:
workflow_dispatch:
schedule:
- cron: "0 22 * * *"
- cron: "0 22 * * *" # scheduled at 06:00 (UTC+8) everyday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout master
uses: actions/checkout@v2
with:
ref: master
- name: Set up python
uses: actions/setup-python@v2

19
.github/workflows/sync.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: "Auto Sync Fork"
on:
schedule:
- cron: "0 */3 * * *" # every 3 hours
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Fork sync
uses: tgymnich/fork-sync@v1.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
owner: y1ndan
base: master
head: master