Update upgrade guide

This commit is contained in:
William Oldham
2024-03-31 16:51:06 +01:00
committed by GitHub
parent cd1869f955
commit b172b52723

View File

@@ -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.