File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,20 @@ name: Update JS
22
33on :
44 workflow_dispatch :
5- # At 4:20 AM UTC, on day 1 of the month, only in March and September
5+ 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 4:20 AM UTC, on day 1 of the month, only in February and August
617 schedule :
7- - cron : ' 20 4 1 3,9 *'
18+ - cron : ' 20 4 1 2,8 *'
819
920permissions : {}
1021
2132 steps :
2233 - name : Update JS
2334 uses : silverstripe/gha-update-js@v1
35+ with :
36+ branch_type : ${{ github.event_name == 'schedule' && 'schedule' || github.event.inputs.branch_type }}
You can’t perform that action at this time.
0 commit comments