File tree Expand file tree Collapse file tree 5 files changed +30
-8
lines changed Expand file tree Collapse file tree 5 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
ci :
10
10
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
11
13
uses : silverstripe/gha-ci/.github/workflows/ci.yml@v1
Original file line number Diff line number Diff line change 1
1
name : Dispatch CI
2
2
3
3
on :
4
- # At 12:10 PM UTC, only on Wednesday and Thursday
4
+ # At 5:25 PM UTC, only on Monday and Tuesday
5
5
schedule :
6
- - cron : ' 10 12 * * 3,4'
6
+ - cron : ' 25 17 * * 1,2'
7
+
8
+ permissions : {}
7
9
8
10
jobs :
9
11
dispatch-ci :
10
12
name : Dispatch CI
11
13
# Only run cron on the silverstripe account
12
14
if : (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
13
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : read
18
+ actions : write
14
19
steps :
15
20
- name : Dispatch CI
16
21
uses : silverstripe/gha-dispatch-ci@v1
Original file line number Diff line number Diff line change 1
1
name : Keepalive
2
2
3
3
on :
4
- # At 10:50 AM UTC, on day 7 of the month
4
+ # At 2:10 PM UTC, on day 23 of the month
5
5
schedule :
6
- - cron : ' 50 10 7 * *'
6
+ - cron : ' 10 14 23 * *'
7
7
workflow_dispatch :
8
8
9
+ permissions : {}
10
+
9
11
jobs :
10
12
keepalive :
11
13
name : Keepalive
12
14
# Only run cron on the silverstripe account
13
15
if : (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
14
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ actions : write
15
19
steps :
16
20
- name : Keepalive
17
21
uses : silverstripe/gha-keepalive@v1
Original file line number Diff line number Diff line change 1
1
name : Merge-up
2
2
3
3
on :
4
- # At 12:10 PM UTC, only on Sunday
4
+ # At 5:25 PM UTC, only on Friday
5
5
schedule :
6
- - cron : ' 10 12 * * 0 '
6
+ - cron : ' 25 17 * * 5 '
7
7
workflow_dispatch :
8
8
9
+ permissions : {}
10
+
9
11
jobs :
10
12
merge-up :
11
13
name : Merge-up
12
14
# Only run cron on the silverstripe account
13
15
if : (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
14
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : write
19
+ actions : write
15
20
steps :
16
21
- name : Merge-up
17
22
uses : silverstripe/gha-merge-up@v1
Original file line number Diff line number Diff line change @@ -2,16 +2,22 @@ name: Update JS
2
2
3
3
on :
4
4
workflow_dispatch :
5
- # Run on a schedule of once per quarter
5
+ # At 9:45 PM UTC, on day 1 of the month, only in March and September
6
6
schedule :
7
- - cron : ' 50 10 1 */3 *'
7
+ - cron : ' 45 21 1 3,9 *'
8
+
9
+ permissions : {}
8
10
9
11
jobs :
10
12
update-js :
11
13
name : Update JS
12
14
# Only run cron on the silverstripe account
13
15
if : (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
14
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : write
19
+ pull-requests : write
20
+ actions : write
15
21
steps :
16
22
- name : Update JS
17
23
uses : silverstripe/gha-update-js@v1
You can’t perform that action at this time.
0 commit comments