-
-
Notifications
You must be signed in to change notification settings - Fork 40k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stub workflow to regen keycode files
- Loading branch information
Showing
5 changed files
with
85 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: PR Regenerate Files | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'data/constants/**' | ||
- 'lib/python/**' | ||
|
||
jobs: | ||
regen: | ||
runs-on: ubuntu-latest | ||
|
||
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- 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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Regenerate Files | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
regen: | ||
runs-on: ubuntu-latest | ||
|
||
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run qmk generators | ||
run: | | ||
util/regen.sh | ||
git diff | ||
- uses: rlespinasse/[email protected] | ||
|
||
- name: Become QMK Bot | ||
run: | | ||
git config user.name 'QMK Bot' | ||
git config user.email '[email protected]' | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
if: ${{ github.repository == 'qmk/qmk_firmware'}} | ||
with: | ||
token: ${{ secrets.QMK_BOT_TOKEN }} | ||
delete-branch: true | ||
branch: bugfix/format_${{ env.GITHUB_REF_SLUG }} | ||
author: QMK Bot <[email protected]> | ||
committer: QMK Bot <[email protected]> | ||
commit-message: Regenerate Files | ||
title: '[CI] Regenerate Files' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
qmk generate-rgb-breathe-table -o quantum/rgblight/rgblight_breathe_table.h | ||
qmk generate-keycodes --version latest -o quantum/keycodes.h | ||
|
||
for lang in $(find data/constants/keycodes/extras/ -type f -printf "%f\n" | sed "s/keycodes_\(.*\)_[0-9].*/\1/"); do | ||
qmk generate-keycode-extras --version latest --lang $lang -o quantum/keymap_extras/keymap_$lang.h | ||
done |