-
Notifications
You must be signed in to change notification settings - Fork 26
32 lines (29 loc) · 1.2 KB
/
draw.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
30
31
32
# Simple workflow for drawing the keymap and deploying static content to GitHub Pages
name: Draw keymap
on:
workflow_dispatch: # can be triggered manually
push:
paths:
- "config/corneish_zen.keymap"
- "config/*.dtsi"
- "knucklehead/*.dtsi"
- "keymap-drawer/config.yaml"
- ".github/workflows/draw.yml"
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
draw:
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
permissions:
contents: write
with:
install_branch: "main" # branch to install keymap-drawer from
keymap_patterns: "config/corneish_zen.keymap" # path to the keymaps to parse
config_path: "keymap-drawer/config.yaml" # config file, ignored if it doesn't exist
output_folder: "keymap-drawer" # path to save produced SVGs
# commit_message: "Draw: ${{ github.event.head_commit.message }}"
amend_commit: true # whether to amend the commit or create a new one
fail_on_error: true