diff --git a/run-pre-commit/action.yaml b/run-pre-commit/action.yaml index 5961c97..95103dc 100644 --- a/run-pre-commit/action.yaml +++ b/run-pre-commit/action.yaml @@ -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: @@ -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: