-
Notifications
You must be signed in to change notification settings - Fork 122
45 lines (42 loc) · 1.09 KB
/
dispatch-ci.yml
File metadata and controls
45 lines (42 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Dispatch CI
on:
# At 8:40 PM UTC, only on Sunday, Monday, and Tuesday
schedule:
- cron: '40 20 * * 0,1,2'
workflow_dispatch:
inputs:
major_type:
description: 'Major branch type'
required: true
type: choice
options:
- 'dynamic'
- 'current'
- 'next'
- 'previous'
default: 'dynamic'
minor_type:
description: 'Minor branch type'
required: true
type: choice
options:
- 'dynamic'
- 'next-minor'
- 'next-patch'
default: 'dynamic'
permissions: {}
jobs:
dispatch-ci:
name: Dispatch CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1
with:
major_type: ${{ inputs.major_type }}
minor_type: ${{ inputs.minor_type }}