Skip to content

Check Generated Modules #12

Check Generated Modules

Check Generated Modules #12

name: Check Generated Modules
on:
schedule:
- cron: '30 3 * * *'
jobs:
check-generated-modules:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.11"
steps:
- uses: actions/[email protected]
with:
fetch-depth: 2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_scripts.txt
- name: Run scripts
run: |
python ./scripts/generate_multilevel_sensor_constants.py
python ./scripts/generate_notification_constants.py
- name: Check for changes
id: changes
uses: UnicornGlobal/[email protected]
- name: Create Pull Request
if: steps.changes.outputs.changed == 1
uses: peter-evans/[email protected]
with:
commit-message: "Update auto-generated constants"
delete-branch: true
title: "Update auto-generated constants"
labels: "ci-generated"