We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2215d9 + 211ba54 commit f8e42d9Copy full SHA for f8e42d9
1 file changed
.github/workflows/update-js.yml
@@ -2,9 +2,20 @@ name: Update JS
2
3
on:
4
workflow_dispatch:
5
- # At 8:40 AM 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 8:40 AM UTC, on day 1 of the month, only in February and August
17
schedule:
- - cron: '40 8 1 3,9 *'
18
+ - cron: '40 8 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