File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,29 @@ name: Repo Sync
2
2
3
3
on :
4
4
schedule :
5
- - cron : " */15 * * * *" # every 15 minutes
5
+ - cron : " 0 8 * * 1-5" # At 08:00 on every day-of-week from Monday through Friday
6
+ workflow_dispatch :
6
7
7
8
jobs :
8
9
repo-sync :
9
10
name : Repo Sync
10
11
runs-on : ubuntu-latest
12
+ env :
13
+ IS_CONFIGURED : ${{ secrets.SOURCE_REPO != '' }}
11
14
steps :
12
15
- uses : actions/checkout@v3
16
+ if : ${{ env.IS_CONFIGURED == 'true' }}
13
17
- uses : repo-sync/github-sync@v2
14
18
name : Sync repo to branch
19
+ if : ${{ env.IS_CONFIGURED == 'true' }}
15
20
with :
16
21
source_repo : ${{ secrets.SOURCE_REPO }}
17
22
source_branch : main
18
23
destination_branch : ${{ secrets.INTERMEDIATE_BRANCH }}
19
24
github_token : ${{ secrets.GITHUB_TOKEN }}
20
25
- uses : repo-sync/pull-request@v2
21
26
name : Create pull request
27
+ if : ${{ env.IS_CONFIGURED == 'true' }}
22
28
with :
23
29
source_branch : ${{ secrets.INTERMEDIATE_BRANCH }}
24
30
destination_branch : main
You can’t perform that action at this time.
0 commit comments