MNT Use update-js action

This commit is contained in:
Steve Boyd 2022-07-29 13:07:50 +12:00
parent a3f2f3cd48
commit b9341d6185
2 changed files with 17 additions and 9 deletions

View File

@ -1,9 +0,0 @@
name: Update JS deps
on:
# Run on a schedule once per quarter
schedule:
- cron: '0 0 1 */3 *'
workflow_dispatch:
jobs:
ci:
uses: silverstripe/github-actions-ci-cd/.github/workflows/update-js-deps.yml@v0.1

17
.github/workflows/update-js.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Update JS
on:
workflow_dispatch:
# Run on a schedule of once per quarter
schedule:
- cron: '0 0 1 */3 *'
jobs:
update-js:
name: Update JS
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Update JS
uses: silverstripe/gha-update-js@v1