We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 381f4d4 commit bbb4e39Copy full SHA for bbb4e39
1 file changed
.github/workflows/update-js.yml
@@ -2,9 +2,20 @@ name: Update JS
2
3
on:
4
workflow_dispatch:
5
- # At 6:30 PM UTC, on day 1 of the month, only in March and September
+ inputs:
6
+ branch_type:
7
+ description: 'The branch type to run action on'
8
+ required: true
9
+ default: 'schedule'
10
+ type: choice
11
+ options:
12
+ - 'schedule'
13
+ - 'prev-major-curr-minor'
14
+ - 'curr-major-curr-minor'
15
+ - 'curr-major-next-minor'
16
+ # At 6:30 PM UTC, on day 1 of the month, only in February and August
17
schedule:
- - cron: '30 18 1 3,9 *'
18
+ - cron: '30 18 1 2,8 *'
19
20
permissions: {}
21
@@ -21,3 +32,5 @@ jobs:
32
steps:
22
33
- name: Update JS
23
34
uses: silverstripe/gha-update-js@v1
35
+ with:
36
+ branch_type: ${{ github.event_name == 'schedule' && 'schedule' || github.event.inputs.branch_type }}
0 commit comments