Merge pull request #344 from creative-commoners/pulls/3/update-js

MNT Use up­date-js action
This commit is contained in:
Guy Sartorelli 2022-07-29 17:06:35 +12:00 committed by GitHub
commit 6974bfd8ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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