File: check-generated-modules.yml

package info (click to toggle)
zwave-js-server-python 0.68.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,824 kB
  • sloc: python: 15,927; sh: 21; javascript: 16; makefile: 2
file content (52 lines) | stat: -rw-r--r-- 1,549 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
name: Check Generated Modules

on:
  schedule:
    - cron:  '30 3 15 * *'

jobs:
  check-generated-modules:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version:
          - "3.12"
        node-version:
          - "20"

    steps:
      - uses: actions/checkout@v6.0.1
        with:
          fetch-depth: 2
      - name: Set up Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v6
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'npm'
      - name: Generate registry JSON files
        run: |
          npm install
          npm run generate
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v6.1.0
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install Python scripts 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/has-changes-action@v1.0.12
      - name: Create Pull Request
        if: steps.changes.outputs.changed == 1
        uses: peter-evans/create-pull-request@v8.0.0
        with:
          commit-message: "Update auto-generated constants"
          delete-branch: true
          title: "Update auto-generated constants"
          labels: "ci-generated"