mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
add sync fork workflow
This commit is contained in:
parent
b06eedb041
commit
d006ed9a49
1 changed files with 26 additions and 0 deletions
26
.github/workflows/sync.yml
vendored
Normal file
26
.github/workflows/sync.yml
vendored
Normal 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
|
Loading…
Reference in a new issue