Fix upgrade guide and add warning

This commit is contained in:
William Oldham
2024-03-31 17:02:53 +01:00
parent b172b52723
commit 4c81431dda

View File

@@ -11,40 +11,50 @@ Keeping your instance up-to-date with the latest features and bug fixes can enha
You can also setup a scheduled workflow to automatically update your instance. This will allow you to keep your instance up to date without manual intervention. You can also setup a scheduled workflow to automatically update your instance. This will allow you to keep your instance up to date without manual intervention.
To do this, you will need to follow the guide below... To do this, you will need to follow the guide below...
1. If you have not already, click [here](https://github.com/movie-web/movie-web/fork) to fork the movie-web Github repository.
2. Paste the below file into your repository's root `/.github/workflows` directory
```yaml <Warning>This upgrade method will only work if your repository is a fork!</Warning>
# File: .github/workflows/sync.yml
name: Sync fork
permissions: <Steps>
contents: write <Steps.Step>
If you have not already, click [here](https://github.com/movie-web/movie-web/fork) to fork the movie-web Github repository.
</Steps.Step>
<Steps.Step>
Paste the below file into your repository's root `/.github/workflows` directory
on: ```yaml
schedule: # File: .github/workflows/sync.yml
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
sync:
name: Sync fork name: Sync fork
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}
steps: permissions:
- name: Checkout code contents: write
uses: actions/checkout@v4
- name: Sync fork on:
run: gh repo sync ${{ github.repository }} schedule:
env: - cron: "0 0 * * *"
GH_TOKEN: ${{ github.token }} workflow_dispatch:
- uses: gautamkrishnar/keepalive-workflow@v1 jobs:
``` sync:
name: Sync fork
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}
3. Commit and push the changes to your repository. 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
```
</Steps.Step>
<Steps.Step>
Commit and push the changes to your repository.
</Steps.Step>
</Steps>
Your instance should now be automatically updated to the latest version. Your instance should now be automatically updated to the latest version.