Browse Source

add sync fork workflow

pull/1068/head
lonelil 1 year ago
parent
commit
d006ed9a49
No known key found for this signature in database
  1. 26
      .github/workflows/sync.yml

26
.github/workflows/sync.yml

@ -0,0 +1,26 @@ @@ -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
Loading…
Cancel
Save