Skip to content

Commit

Permalink
feature: add install_repo property to draw-zmk.yml
Browse files Browse the repository at this point in the history
Facilitates testing `keymap-drawer` PRs from a fork.
  • Loading branch information
Seth Milliken committed Mar 24, 2024
1 parent f63ccf4 commit 40f14b1
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 @@ -44,6 +44,11 @@ on:
default: false
required: false
type: boolean
install_repo:
description: 'Install keymap-drawer from a git repo. Primarily for testing changes using a keymap-drawer fork.'
default: 'caksoylar/keymap-drawer'
required: false
type: string
install_branch:
description: 'Install keymap-drawer from a git branch, use empty for pypi release (default)'
default: ''
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+https://github.com/${{ inputs.install_repo }}@${{ inputs.install_branch }}"

- name: Draw keymaps
id: draw
Expand Down

0 comments on commit 40f14b1

Please sign in to comment.