Skip to content

Commit 710d5c5

Browse files
Merge pull request #238 from creative-commoners/pulls/2/module-standardiser-1751412589
MNT Run module-standardiser
2 parents 35b465f + c6fcc8c commit 710d5c5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/update-js.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@ name: Update JS
22

33
on:
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

920
permissions: {}
1021

@@ -21,3 +32,5 @@ jobs:
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 }}

0 commit comments

Comments
 (0)