-
Notifications
You must be signed in to change notification settings - Fork 189
42 lines (34 loc) · 1.18 KB
/
update-bundle-report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: '3.7'
- 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@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
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.