File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed
Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 88jobs :
99 ci :
1010 name : CI
11+ # Do not run if this is a pull-request from same repo i.e. not a fork repo
12+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1113 uses : silverstripe/gha-ci/.github/workflows/ci.yml@v1
Original file line number Diff line number Diff line change 11name : Dispatch CI
22
33on :
4- # At 3:10 PM UTC, only on Sunday and Monday
4+ # At 6:30 AM UTC, only on Friday and Saturday
55 schedule :
6- - cron : ' 10 15 * * 0,1'
6+ - cron : ' 30 6 * * 5,6'
7+
8+ permissions : {}
79
810jobs :
911 dispatch-ci :
1012 name : Dispatch CI
1113 # Only run cron on the silverstripe account
1214 if : (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
1315 runs-on : ubuntu-latest
16+ permissions :
17+ contents : read
18+ actions : write
1419 steps :
1520 - name : Dispatch CI
1621 uses : silverstripe/gha-dispatch-ci@v1
Original file line number Diff line number Diff line change 11name : Keepalive
22
33on :
4- # At 11:55 AM UTC, on day 24 of the month
4+ # At 3:15 AM UTC, on day 20 of the month
55 schedule :
6- - cron : ' 55 11 24 * *'
6+ - cron : ' 15 3 20 * *'
77 workflow_dispatch :
88
9+ permissions : {}
10+
911jobs :
1012 keepalive :
1113 name : Keepalive
1214 # Only run cron on the silverstripe account
1315 if : (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
1416 runs-on : ubuntu-latest
17+ permissions :
18+ actions : write
1519 steps :
1620 - name : Keepalive
1721 uses : silverstripe/gha-keepalive@v1
Original file line number Diff line number Diff line change 11name : Merge-up
22
33on :
4- # At 3:10 PM UTC, only on Thursday
4+ # At 6:30 AM UTC, only on Tuesday
55 schedule :
6- - cron : ' 10 15 * * 4 '
6+ - cron : ' 30 6 * * 2 '
77 workflow_dispatch :
88
9+ permissions : {}
10+
911jobs :
1012 merge-up :
1113 name : Merge-up
1214 # Only run cron on the silverstripe account
1315 if : (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
1416 runs-on : ubuntu-latest
17+ permissions :
18+ contents : write
19+ actions : write
1520 steps :
1621 - name : Merge-up
1722 uses : silverstripe/gha-merge-up@v1
You can’t perform that action at this time.
0 commit comments