Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.1 KB

README.md

File metadata and controls

35 lines (28 loc) · 1.1 KB

GitHub Actions - Update JS

Update JS dependencies in core Silverstripe modules, create new bundles and create pull-requests

Usage:

This action has no inputs. It is intended to be run on a schedule. You can copy the below example verbatim, and just modify the schedule to suit your use case.

.github/workflows/update-js.yml

name: Update JS

on:
  # Run on a schedule of once per quarter
  schedule:
    - cron: '0 0 1 */3 *'
  workflow_dispatch:

permissions: {}

jobs:
  update-js:
    # Only run the cron on the account hosting this repository, not on the accounts of forks
    # Change '<account_name>' to match the name of the account hosting this repository
    if: (github.event_name == 'schedule' && github.repository_owner == '<account_name>') || (github.event_name != 'schedule')
    name: Update JS
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-request: write
      actions: write
    steps:
      - name: Update JS
        uses: silverstripe/gha-update-js@v1