Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@ name: Update JS

on:
workflow_dispatch:
# At 2:10 PM UTC, on day 1 of the month, only in March and September
inputs:
branch_type:
description: 'The branch type to run action on'
required: true
default: 'schedule'
type: choice
options:
- 'schedule'
- 'prev-major-curr-minor'
- 'curr-major-curr-minor'
- 'curr-major-next-minor'
# At 2:10 PM UTC, on day 1 of the month, only in February and August
schedule:
- cron: '10 14 1 3,9 *'
- cron: '10 14 1 2,8 *'

permissions: {}

Expand All @@ -21,3 +32,5 @@ jobs:
steps:
- name: Update JS
uses: silverstripe/gha-update-js@v1
with:
branch_type: ${{ github.event_name == 'schedule' && 'schedule' || github.event.inputs.branch_type }}