mirror of
https://github.com/movie-web/docs.git
synced 2025-09-13 13:33:27 +00:00
Implement Toon's yaml file
This commit is contained in:
@@ -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).
|
||||
|
Reference in New Issue
Block a user