added flow for keymap drawer

This commit is contained in:
Darren Victoriano
2025-02-04 21:14:37 -08:00
parent 0f2844bb5d
commit b4d8aedc9b
2 changed files with 570 additions and 0 deletions

15
.github/workflows/keymap-drawer.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Draw ZMK keymaps
on: [workflow_dispatch]
jobs:
draw:
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
permissions:
contents: write # allow workflow to commit to the repo
with:
amend_commit: true
keymap_patterns: "config/*.keymap" # path to the keymaps to parse
config_path: "images/config_keymap-drawer.yaml" # config file, ignored if not exists
output_folder: "images" # path to save produced SVG and keymap YAML files
parse_args: "" # map of extra args to pass to `keymap parse`, e.g. "corne:'-l Def Lwr Rse' cradio:''"
draw_args: "" # map of extra args to pass to `keymap draw`, e.g. "corne:'-k corne_rotated' cradio:'-k paroxysm'"