Skip to content

Commit

Permalink
feat: add install_repo property to draw-zmk.yml (#83)
Browse files Browse the repository at this point in the history
Facilitates testing `keymap-drawer` PRs from a fork.

Co-authored-by: Seth Milliken <[email protected]>
  • Loading branch information
SethMilliken and Seth Milliken authored Mar 25, 2024
1 parent e76e4c5 commit 1869b23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/draw-zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ on:
default: ''
required: false
type: string
install_repo:
description: 'Install keymap-drawer from a different git remote, primarily for testing changes using a keymap-drawer fork. Ignored if `install_branch` is unset/empty.'
default: 'https://github.com/caksoylar/keymap-drawer.git'
required: false
type: string
destination:
description: 'Add the output files to a commit, as artifacts or both, values: `commit`, `artifact`, `both`'
default: 'commit'
Expand Down Expand Up @@ -92,7 +97,7 @@ jobs:

- name: Install keymap-drawer (git)
if: inputs.install_branch != ''
run: python3 -m pip install "git+https://github.com/caksoylar/keymap-drawer.git@${{ inputs.install_branch }}"
run: python3 -m pip install "git+${{ inputs.install_repo }}@${{ inputs.install_branch }}"

- name: Draw keymaps
id: draw
Expand Down

0 comments on commit 1869b23

Please sign in to comment.