Skip to content

Commit

Permalink
sync fork action
Browse files Browse the repository at this point in the history
  • Loading branch information
devanonon authored May 23, 2024
1 parent 495c52e commit 1a44362
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1a44362

Please sign in to comment.