remove to 3 #8
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
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" | |
- "config/boards/*/*/*.keymap" | |
jobs: | |
draw: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
- name: Build keymap image | |
shell: bash | |
run: | | |
pipx install keymap-drawer | |
keymap parse -z config/cradio.keymap > cradio.yaml | |
keymap draw cradio.yaml > 3x5-keymap.svg | |
- name: Commit updated images | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
file_pattern: "*.svg" | |
commit_message: "ci(keymap): draw keymap in svg" | |
permissions: | |
contents: write |