forked from AYM1607/corne-zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (28 loc) · 1.72 KB
/
draw-keymaps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Use the keymap-drawer ZMK user config workflow
# https://github.com/caksoylar/keymap-drawer#setting-up-an-automated-drawing-workflow
name: Draw ZMK keymaps
on:
workflow_dispatch: # can be triggered manually
push: # automatically run on changes to following paths
paths:
- 'config/*.keymap'
- 'config/*.dtsi'
- 'config/*.json'
- 'keymap_drawer.config.yaml'
- '.github/workflows/draw-keymaps.yml'
# - 'config/boards/*/*/*.keymap'
jobs:
draw:
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
# uses: SethMilliken/keymap-drawer/.github/workflows/draw-zmk.yml@main
with:
keymap_patterns: "config/*.keymap" # path to the keymaps to parse
config_path: "keymap_drawer.config.yaml" # config file, ignored if not exists
output_folder: "svg" # path to save produced SVGs
#install_repo: "https://github.com/SethMilliken/keymap-drawer.git" # repo to use (typically should match "uses" property above)
install_repo: https://github.com/caksoylar/keymap-drawer.git
install_branch: "main" # branch to use
amend_commit: true # amend generated files to commit that produces them
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'"
fail_on_error: true