diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d12019..8b31a90 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..2c37571 --- /dev/null +++ b/.github/workflows/sync.yml @@ -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 \ No newline at end of file