Implement Toon's yaml file

This commit is contained in:
Cooper Ransom
2024-03-22 20:45:11 -04:00
parent eb067a5b90
commit 352faef7c4

View File

@@ -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).