Skip to content

Update JS Bundle and Example Report #38

Update JS Bundle and Example Report

Update JS Bundle and Example Report #38

name: Update JS Bundle and Example Report
on:
schedule:
# Run on the first day of the month
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.8'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Update the JavaScript bundle
run: |
make build-js
- name: Generate the updated reports
run: |
make generate-report
- name: Run NPM unit tests for sanity checks
run: |
make test-js
- name: PR if files were updated
uses: peter-evans/create-pull-request@8867c4aba1b742c39f8d0ba35429c2dfa4b6cb20 # v7.0.1
with:
commit-message: Update JS Bundle and example reports
title: 'Updates JS Bundle and example reports'
body: This is an automated PR created to update the JS Bundle and the example reports.