From 352faef7c45b565f62f8472c6f7a9078ade92ad5 Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Fri, 22 Mar 2024 20:45:11 -0400 Subject: [PATCH] Implement Toon's yaml file --- content/3.client/5.upgrade.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/content/3.client/5.upgrade.md b/content/3.client/5.upgrade.md index f24927be..fc59d839 100644 --- a/content/3.client/5.upgrade.md +++ b/content/3.client/5.upgrade.md @@ -28,28 +28,27 @@ To do this, you will need to follow the guide below... 2. Paste the below file into your repository's root `/.github/workflows` directory ```yaml -# File: .github/workflows/repo-sync.yml -name: Repo sync +# File: .github/workflows/sync.yml +name: Sync fork on: schedule: - - cron: "*/15 * * * *" - workflow_dispatch: + - cron: "*/5 * * * *" + push: + branches: + - "*" + paths: + - .github/workflows/sync.yml jobs: - repo-sync: + sync: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - name: repo-sync - uses: repo-sync/github-sync@v2 - with: - source_repo: "" # Change this to the repo you want to sync from - source_branch: "" # Change this to the branch you want to sync from - destination_branch: "" # Change this to the branch you want to sync to - github_token: ${{ secrets.PAT }} + - uses: actions/checkout@v3 + - run: gh repo sync reponame/forkname + env: + GH_TOKEN: ${{ github.token }} + - uses: gautamkrishnar/keepalive-workflow@v1 ``` ::alert{type="info"} This workflow yaml file was taken from this [Github repository](https://github.com/repo-sync/github-sync).