Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions run-pre-commit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ inputs:
description: |
The GitHub token is used by Nix to pull from GitHub with higher rate-limits. Required when
the 'nix' input is used.
jinja2-cli:
description: Whether to install jinja2-cli (and which version to use)
runs:
using: composite
steps:
Expand Down Expand Up @@ -123,6 +125,13 @@ runs:
echo "$LOCATION_DIR" | tee -a "$GITHUB_PATH"
- name: Install jinja2-cli
if: ${{ inputs.jinja2-cli }}
shell: bash
env:
JINJA2_CLI_VERSION: ${{ inputs.jinja2-cli }}
run: pip install jinja2-cli==${JINJA2_CLI_VERSION}

- name: Run pre-commit
shell: bash
env:
Expand Down