mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-06-19 17:31:30 +02:00
CI: Check that 'gen_layouts.py' output is uptodate
This commit is contained in:
parent
de6c3b024d
commit
c1b7503239
19
.github/workflows/check-layouts.yml
vendored
Normal file
19
.github/workflows/check-layouts.yml
vendored
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user