render keymaps #29
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" | |
- "Makefile" | |
- "config/boards/*/*/*.keymap" | |
jobs: | |
draw: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Build keymap image | |
shell: bash | |
run: | | |
make pipx-keymap | |
make draw-sweep | |
make draw-reviung34 | |
make draw-reviung5 | |
- name: Commit updated images | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "ci(keymap): draw keymap in svg" | |
permissions: | |
contents: write |