Skip to content

Commit

Permalink
Implement Toon's yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCozi committed Mar 23, 2024
1 parent eb067a5 commit 352faef
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions content/3.client/5.upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 352faef

Please sign in to comment.