Skip to content

Commit bdccb71

Browse files
authored
chore: add jinja2-cli installation to run-pre-commit action (#88)
* chore: add jinja2-cli installation to run-pre-commit action * add shell property * update name * test jinja2 installation * remove jinja2 test
1 parent 976e8c2 commit bdccb71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

run-pre-commit/action.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ inputs:
2727
description: |
2828
The GitHub token is used by Nix to pull from GitHub with higher rate-limits. Required when
2929
the 'nix' input is used.
30+
jinja2-cli:
31+
description: Whether to install jinja2-cli (and which version to use)
3032
runs:
3133
using: composite
3234
steps:
@@ -123,6 +125,13 @@ runs:
123125
124126
echo "$LOCATION_DIR" | tee -a "$GITHUB_PATH"
125127
128+
- name: Install jinja2-cli
129+
if: ${{ inputs.jinja2-cli }}
130+
shell: bash
131+
env:
132+
JINJA2_CLI_VERSION: ${{ inputs.jinja2-cli }}
133+
run: pip install jinja2-cli==${JINJA2_CLI_VERSION}
134+
126135
- name: Run pre-commit
127136
shell: bash
128137
env:

0 commit comments

Comments
 (0)