generated from moergo-sc/glove80-zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (32 loc) · 1.01 KB
/
draw-keymaps.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
33
34
35
36
37
38
39
name: Draw keymaps
on:
workflow_dispatch: # can be triggered manually
push: # automatically run on changes to following paths
paths:
- "**.lock"
- "drawer/**"
- "config/**"
jobs:
draw:
runs-on: ubuntu-latest
permissions:
contents: write # Allow CI to write commits to the repo
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Set to 2 if amending, or 1 if creating a new commit
fetch-depth: 1
submodules: recursive
- name: Install nix
uses: cachix/install-nix-action@v25
- name: Setup nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Draw keymaps
run: nix run . -- draw
# TODO print to $GITHUB_STEP_SUMMARY
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[Draw] ${{ github.event.head_commit.message || '(Manually triggered)' }}"
file_pattern: img/**