Skip to content

Commit ccf60f7

Browse files
committed
MNT Use gha-dispatch-ci
1 parent 95fb88c commit ccf60f7

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/ci.yml

-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ on:
44
push:
55
pull_request:
66
workflow_dispatch:
7-
# Every Tuesday at 1:00pm UTC
8-
schedule:
9-
- cron: '0 13 * * 2'
107

118
jobs:
129
ci:
1310
name: CI
14-
# Only run cron on the silverstripe account
15-
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
1611
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1

.github/workflows/dispatch-ci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Dispatch CI
2+
3+
on:
4+
# At 1:00 PM UTC, only on Tuesday and Wednesday
5+
schedule:
6+
- cron: '0 13 * * 2,3'
7+
8+
jobs:
9+
dispatch-ci:
10+
name: Dispatch CI
11+
# Only run cron on the silverstripe account
12+
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Dispatch CI
16+
uses: silverstripe/gha-dispatch-ci@v1

0 commit comments

Comments
 (0)