abouttreesummaryrefslogcommitdiff
path: root/.github/workflows/check-layouts.yml
blob: 9a8dc75d37caab8a2a36220459fecec9ca4b9c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Check layouts

# Runs 'gen_layouts.py' and checks that the generated file were uptodate.
# This doesn't run 'check_layout.py'.

on:
  workflow_dispatch:
  push:
  pull_request:

jobs:
  check-layouts:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout repo
      uses: actions/checkout@v3
    - run: python3 gen_layouts.py
    - name: Check that the generated layouts.xml is uptodate, run python3 gen_layouts.py otherwise
      run: git diff --exit-code