mirror of
https://github.com/movie-web/docs.git
synced 2025-09-13 11:23: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
|
||||
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 < >
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
- uses: gautamkrishnar/keepalive-workflow@v1
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
- 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
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
|
Reference in New Issue
Block a user