-
Notifications
You must be signed in to change notification settings - Fork 240
39 lines (37 loc) · 1.08 KB
/
generate-model-list.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
name: Generate support model list
on:
push:
paths:
- '**/model.json'
branches:
- master
workflow_dispatch:
jobs:
format:
name: Generate list
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install -r ${{ github.workspace }}/.github/scripts/supported_models/requirements.txt
- name: Pull again
run: git pull || true
- name: Generate file
run: |
python3 ${{ github.workspace }}/.github/scripts/supported_models/generate_file.py
- uses: EndBug/add-and-commit@v7
with:
add: 'docs/supported_models.md'
message: 'Update support model list'
- uses: EndBug/add-and-commit@v7
with:
add: 'custom_components/powercalc/data/manufacturer_device_types.json'
message: 'Update manufacturer_device_types.json'