temp-fix: remove all icons #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Draw keymaps | |
on: | |
workflow_dispatch: # can be triggered manually | |
push: # automatically run on changes to following paths | |
paths: | |
- "**.lock" | |
- "config/**" | |
env: | |
km_dr_version: main | |
km_dr_config: config/keymap_drawer.yaml | |
keymap_path: config/*.keymap | |
output_folder: img | |
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: DeterminateSystems/nix-installer-action@main | |
- name: Setup nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Draw keymaps | |
run: nix build .#keymap-drawer-svgs | |
- name: Copy SVGs into repo | |
run: cp result/* img | |
# 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: ${{ env.output_folder }}/*.svg ${{ env.output_folder }}/*.yaml | |