Merge pull request #1068 from lonelil/dev

add sync fork workflow
This commit is contained in:
William Oldham 2024-03-31 16:53:49 +01:00 committed by GitHub
commit a5694fa430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

@ -0,0 +1,26 @@
name: Sync fork
permissions:
contents: write
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
sync:
name: Sync fork
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Sync fork
run: gh repo sync ${{ github.repository }}
env:
GH_TOKEN: ${{ github.token }}
- uses: gautamkrishnar/keepalive-workflow@v1