From 3eabcbbdd97e2996495701c07e4a75ca455334e3 Mon Sep 17 00:00:00 2001 From: Raeed Chowdhury Date: Mon, 22 Apr 2024 15:54:53 -0400 Subject: [PATCH] ci: add back action to draw keymap --- .github/workflows/doc.yml | 25 +++++++++++++++++++ ..._config.yaml => keymap_drawer.config.yaml} | 0 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/doc.yml rename keymap_img/{temper_keymap_config.yaml => keymap_drawer.config.yaml} (100%) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 00000000..84f5a866 --- /dev/null +++ b/.github/workflows/doc.yml @@ -0,0 +1,25 @@ +name: draw keymap + +on: + workflow_dispatch: # can be triggered manually + push: # automatically run on changes to following paths + paths: + - ".github/workflows/doc.yml" + - "keymap_img/keymap_drawer.config.yaml" + - "config/*.keymap" + - "config/*.dtsi" + - "boards/*/*/*.keymap" + - "boards/*/*/*.dtsi" + +jobs: + draw: + uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main + permissions: + contents: write # allow workflow to commit to the repo + with: + commit_message: "doc: update keymap image" # commit message for the changes + keymap_patterns: "boards/*/*/*.keymap" # path to the keymaps to parse + config_path: "keymap_img/keymap_drawer.config.yaml" # config file, ignored if it does not exist + output_folder: "keymap_img" # path to save produced SVG and keymap YAML files + parse_args: "temper:'-c 10'" # map of extra args to pass to `keymap parse`, e.g. "corne:'-l Def Lwr Rse' cradio:''" + draw_args: "temper:'-k chocofi'" # map of extra args to pass to `keymap draw`, e.g. "corne:'-k corne_rotated' cradio:'-k paroxysm'" \ No newline at end of file diff --git a/keymap_img/temper_keymap_config.yaml b/keymap_img/keymap_drawer.config.yaml similarity index 100% rename from keymap_img/temper_keymap_config.yaml rename to keymap_img/keymap_drawer.config.yaml