mirror of
https://github.com/movie-web/docs.git
synced 2025-09-13 06:43:26 +00:00
Update upgrade guide
This commit is contained in:
@@ -18,31 +18,33 @@ To do this, you will need to follow the guide below...
|
|||||||
# File: .github/workflows/sync.yml
|
# File: .github/workflows/sync.yml
|
||||||
name: Sync fork
|
name: Sync fork
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 * * * *" # Run the job every hour
|
- cron: "0 0 * * *"
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches:
|
|
||||||
- "*"
|
|
||||||
paths:
|
|
||||||
- .github/workflows/sync.yml
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
|
name: Sync fork
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.repository.fork }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout code
|
||||||
- run: gh repo sync <OWNER>/<FORK> # Replace the placeholders within the < >
|
uses: actions/checkout@v4
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ github.token }}
|
- name: Sync fork
|
||||||
- uses: gautamkrishnar/keepalive-workflow@v1
|
run: gh repo sync ${{ github.repository }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
|
- uses: gautamkrishnar/keepalive-workflow@v1
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Replace the `<OWNER>` placeholder with the GitHub username of the account that owns the fork.
|
3. Commit and push the changes to your repository.
|
||||||
4. Replace the `<FORK>` placeholder with the repository name of your fork.
|
|
||||||
5. Commit and push the changes to your repository.
|
|
||||||
|
|
||||||
Your instance should now be automatically updated to the latest version.
|
Your instance should now be automatically updated to the latest version.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user