From 4c81431ddad605e309529ac81790f5688176daf0 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Sun, 31 Mar 2024 17:02:53 +0100 Subject: [PATCH] Fix upgrade guide and add warning --- pages/client/upgrade.mdx | 62 +++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 26 deletions(-) diff --git a/pages/client/upgrade.mdx b/pages/client/upgrade.mdx index d62c348..452f6d2 100644 --- a/pages/client/upgrade.mdx +++ b/pages/client/upgrade.mdx @@ -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. 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 -# File: .github/workflows/sync.yml -name: Sync fork +This upgrade method will only work if your repository is a fork! -permissions: - contents: write + + + If you have not already, click [here](https://github.com/movie-web/movie-web/fork) to fork the movie-web Github repository. + + + Paste the below file into your repository's root `/.github/workflows` directory -on: - schedule: - - cron: "0 0 * * *" - workflow_dispatch: - -jobs: - sync: + ```yaml + # File: .github/workflows/sync.yml name: Sync fork - runs-on: ubuntu-latest - if: ${{ github.event.repository.fork }} - steps: - - name: Checkout code - uses: actions/checkout@v4 + permissions: + contents: write - - name: Sync fork - run: gh repo sync ${{ github.repository }} - env: - GH_TOKEN: ${{ github.token }} + on: + schedule: + - cron: "0 0 * * *" + 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 + ``` + + + Commit and push the changes to your repository. + + Your instance should now be automatically updated to the latest version.