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
name: Sync fork
permissions:
contents: write
on:
schedule:
- cron: "0 * * * *" # Run the job every hour
push:
branches:
- "*"
paths:
- .github/workflows/sync.yml
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
sync:
name: Sync fork
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}
steps:
- uses: actions/checkout@v3
- run: gh repo sync <OWNER>/<FORK> # Replace the placeholders within the < >
- 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
env:
GH_TOKEN: ${{ github.token }}
```
3. Replace the `<OWNER>` placeholder with the GitHub username of the account that owns the fork.
4. Replace the `<FORK>` placeholder with the repository name of your fork.
5. Commit and push the changes to your repository.
3. Commit and push the changes to your repository.
Your instance should now be automatically updated to the latest version.