Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Sep 20, 2023
1 parent 7b03fff commit cea8b59
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/draw-keymaps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
KEYMAP="${{ env.keymap }}"
CONFIG="${{ env.km_dr_config }}"
keymap -c "$CONFIG" parse -z "$KEYMAP" > /tmp/keymap.yaml
keymap -c "$CONFIG" parse -z "$KEYMAP" > keymap.yaml
- name: Upload config
uses: actions/upload-artifact@v3
with:
Expand All @@ -34,7 +34,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: glove80.yaml
path: /tmp/keymap.yaml
path: keymap.yaml

scan-layers:
runs-on: ubuntu-latest
Expand All @@ -45,15 +45,15 @@ jobs:
uses: actions/download-artifact@v3
with:
name: glove80.yaml
path: /tmp
- name: Checkout
uses: actions/checkout@v3
- name: Install PyYaml
run: python3 -m pip install pyyaml
- name: Scan layers
id: scan
run: |
python3 .github/workflows/layers.py /tmp/glove80.yaml \
set -o pipefail
python3 .github/workflows/layers.py glove80.yaml \
| sed "s/^/layers=/g" >> $GITHUB_OUTPUT
outputs:
layers: ${{ steps.scan.outputs.layers }}
Expand All @@ -67,21 +67,19 @@ jobs:
uses: actions/download-artifact@v3
with:
name: config.yaml
path: /tmp
- name: Download keymap yaml
uses: actions/download-artifact@v3
with:
name: glove80.yaml
path: /tmp
- name: Install keymap-drawer (git)
run: python3 -m pip install "git+https://github.com/caksoylar/keymap-drawer.git@${{ env.km_dr_version }}"
- name: Draw keymap
run: keymap -c /tmp/config.yaml draw /tmp/glove80.yaml > /tmp/keymap.svg
run: keymap -c config.yaml draw glove80.yaml > keymap.svg
- name: Upload keymap svg
uses: actions/upload-artifact@v3
with:
name: glove80.svg
path: /tmp/keymap.svg
path: keymap.svg

draw-each-layer:
runs-on: ubuntu-latest
Expand All @@ -96,21 +94,19 @@ jobs:
uses: actions/download-artifact@v3
with:
name: config.yaml
path: /tmp
- name: Download keymap yaml
uses: actions/download-artifact@v3
with:
name: glove80.yaml
path: /tmp
- name: Install keymap-drawer (git)
run: python3 -m pip install "git+https://github.com/caksoylar/keymap-drawer.git@${{ env.km_dr_version }}"
- name: Draw layer keymap
run: keymap -c /tmp/config.yaml draw /tmp/glove80.yaml -s "${{ matrix.layer }}" > /tmp/keymap.svg
run: keymap -c config.yaml draw glove80.yaml -s "${{ matrix.layer }}" > keymap.svg
- name: Upload layer keymap svg
uses: actions/upload-artifact@v3
with:
name: glove80_${{ matrix.layer }}.svg
path: /tmp/keymap.svg
path: keymap.svg

commit:
runs-on: ubuntu-latest
Expand Down

0 comments on commit cea8b59

Please sign in to comment.