diff --git a/pages/client/upgrade.mdx b/pages/client/upgrade.mdx index dcd3b7b..d62c348 100644 --- a/pages/client/upgrade.mdx +++ b/pages/client/upgrade.mdx @@ -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 / # 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 `` placeholder with the GitHub username of the account that owns the fork. -4. Replace the `` 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.