From 794189bb58e782cea9057fab8571de1fceb5d1c1 Mon Sep 17 00:00:00 2001 From: nguyenhaiac Date: Fri, 6 Sep 2024 22:12:25 +0700 Subject: [PATCH] Create keymap_drawer.yaml --- .github/workflows/keymap_drawer.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/keymap_drawer.yaml diff --git a/.github/workflows/keymap_drawer.yaml b/.github/workflows/keymap_drawer.yaml new file mode 100644 index 0000000..845d62b --- /dev/null +++ b/.github/workflows/keymap_drawer.yaml @@ -0,0 +1,23 @@ +# Example for using the keymap-drawer ZMK user config 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" + - "keymap_drawer.config.yaml" + # - 'boards/*/*/*.keymap' + +jobs: + draw: + uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main + permissions: + contents: write # allow workflow to commit to the repo + 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: "keymap-drawer" # path to save produced SVG and keymap YAML files + json_path: "config/" + 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'"