Skip to content

Commit aa25662

Browse files
author
Alexander Smirnov
committed
add repo-sync configuration
1 parent 3450a9b commit aa25662

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/repo-sync.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Repo Sync
2+
3+
on:
4+
schedule:
5+
- cron: "*/15 * * * *" # every 15 minutes
6+
7+
jobs:
8+
repo-sync:
9+
name: Repo Sync
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: repo-sync/github-sync@v2
14+
name: Sync repo to branch
15+
with:
16+
source_repo: ${{ secrets.SOURCE_REPO }}
17+
source_branch: main
18+
destination_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: repo-sync/pull-request@v2
21+
name: Create pull request
22+
with:
23+
source_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
24+
destination_branch: main
25+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)