mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-15 03:45:13 +00:00
Update sync.yml
This commit is contained in:
parent
af2e6b793d
commit
6c66806aa5
12
.github/workflows/sync.yml
vendored
12
.github/workflows/sync.yml
vendored
|
@ -1,26 +1,26 @@
|
||||||
name: Sync fork
|
name: Sync fork
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
name: Sync fork
|
name: Sync fork
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.repository.fork }}
|
if: ${{ github.event.repository.fork }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Sync fork
|
- name: Sync fork
|
||||||
run: gh repo sync ${{ github.repository }}
|
run: gh repo sync ${{ github.repository }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
- uses: gautamkrishnar/keepalive-workflow@v1
|
- uses: gautamkrishnar/keepalive-workflow@v1
|
||||||
|
|
Loading…
Reference in a new issue