mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-12 04:40:58 +00:00
41 lines
833 B
YAML
41 lines
833 B
YAML
name: PR Regenerate Files
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'data/constants/**'
|
|
- 'lib/python/**'
|
|
|
|
jobs:
|
|
regen:
|
|
runs-on: ubuntu-latest
|
|
|
|
container: ghcr.io/qmk/qmk_cli
|
|
|
|
steps:
|
|
- name: Disable safe.directory check
|
|
run : git config --global --add safe.directory '*'
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install python reqs
|
|
run: |
|
|
python3 -m pip install -r requirements.txt
|
|
|
|
- name: Run qmk generators
|
|
run: |
|
|
util/regen.sh
|
|
git diff
|
|
|
|
- name: Fail when regeneration required
|
|
run: |
|
|
git diff
|
|
for file in $(git diff --name-only); do
|
|
echo "File '${file}' Requires Regeneration"
|
|
echo "::error file=${file}::Requires Regeneration"
|
|
done
|
|
test -z "$(git diff --name-only)"
|