blob: fce0721c7f4f920546998a373f403d9f99d0a046 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
name: Repo Sync
on:
schedule:
- cron: "*/15 * * * *"
jobs:
repo-sync:
name: Repo Sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: repo-sync/github-sync@v2
name: Sync repository to branch
with:
source_repo: ${{ secrets.SOURCE_REPO }}
source_branch: "master"
destination_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: repo-sync/pull-request@v2
name: Create pull request
with:
source_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
destination_branch: "master"
github_token: ${{ secrets.GITHUB_TOKEN }}
|