mirror of
https://github.com/movie-web/docs.git
synced 2025-09-13 02:43:28 +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
|
2. Paste the below file into your repository's root `/.github/workflows` directory
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# File: .github/workflows/repo-sync.yml
|
# File: .github/workflows/sync.yml
|
||||||
name: Repo sync
|
name: Sync fork
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "*/15 * * * *"
|
- cron: "*/5 * * * *"
|
||||||
workflow_dispatch:
|
push:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
paths:
|
||||||
|
- .github/workflows/sync.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
repo-sync:
|
sync:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3
|
||||||
with:
|
- run: gh repo sync reponame/forkname
|
||||||
persist-credentials: false
|
env:
|
||||||
- name: repo-sync
|
GH_TOKEN: ${{ github.token }}
|
||||||
uses: repo-sync/github-sync@v2
|
- uses: gautamkrishnar/keepalive-workflow@v1
|
||||||
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 }}
|
|
||||||
```
|
```
|
||||||
::alert{type="info"}
|
::alert{type="info"}
|
||||||
This workflow yaml file was taken from this [Github repository](https://github.com/repo-sync/github-sync).
|
This workflow yaml file was taken from this [Github repository](https://github.com/repo-sync/github-sync).
|
||||||
|
Reference in New Issue
Block a user