movie-web/.github/workflows/sync.yml

27 lines
477 B
YAML
Raw Normal View History

2024-03-31 15:05:50 +00:00
name: Sync fork
2024-04-04 11:14:01 +00:00
2024-03-31 15:05:50 +00:00
permissions:
contents: write
2024-04-04 11:14:01 +00:00
2024-03-31 15:05:50 +00:00
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
2024-04-04 11:14:01 +00:00
2024-03-31 15:05:50 +00:00
jobs:
sync:
name: Sync fork
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}
2024-04-04 11:14:01 +00:00
2024-03-31 15:05:50 +00:00
steps:
- name: Checkout code
uses: actions/checkout@v4
2024-04-04 11:14:01 +00:00
2024-03-31 15:05:50 +00:00
- name: Sync fork
run: gh repo sync ${{ github.repository }}
env:
GH_TOKEN: ${{ github.token }}
2024-04-04 11:14:01 +00:00
2024-03-31 15:05:50 +00:00
- uses: gautamkrishnar/keepalive-workflow@v1