diff options
| author | Jules Aguillon | 2023-06-25 16:52:48 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-06-25 16:52:48 +0200 |
| commit | c1b7503239f03d53d129d540e322fb778c90b3db (patch) | |
| tree | e96990ad7ad13cf6b86a689e4df37a4453558305 /.github | |
| parent | de6c3b024d9879fffc608126d974756624d6eec7 (diff) | |
| download | unexpected-keyboard-c1b7503239f03d53d129d540e322fb778c90b3db.tar.gz unexpected-keyboard-c1b7503239f03d53d129d540e322fb778c90b3db.zip | |
CI: Check that 'gen_layouts.py' output is uptodate
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/check-layouts.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/check-layouts.yml b/.github/workflows/check-layouts.yml new file mode 100644 index 0000000..9a8dc75 --- /dev/null +++ b/.github/workflows/check-layouts.yml @@ -0,0 +1,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 |
