From 31bfaa12fd1f8dbd4a4b2b3bce27ffc1a3f7ead8 Mon Sep 17 00:00:00 2001 From: xeniape Date: Tue, 25 Nov 2025 10:37:04 +0100 Subject: [PATCH 1/5] chore: add jinja2-cli installation to run-pre-commit action --- run-pre-commit/action.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/run-pre-commit/action.yaml b/run-pre-commit/action.yaml index 5961c97..38f2aa8 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,12 @@ runs: echo "$LOCATION_DIR" | tee -a "$GITHUB_PATH" + - name: Install Install jinja2-cli + if: ${{ inputs.jinja2-cli }} + env: + JINJA2_CLI_VERSION: ${{ inputs.jinja2-cli }} + run: pip install jinja2-cli==${JINJA2_CLI_VERSION} + - name: Run pre-commit shell: bash env: From ff5754f97ed76c43b5a7078edc893fbe31f1a85b Mon Sep 17 00:00:00 2001 From: xeniape Date: Tue, 25 Nov 2025 10:41:25 +0100 Subject: [PATCH 2/5] add shell property --- run-pre-commit/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/run-pre-commit/action.yaml b/run-pre-commit/action.yaml index 38f2aa8..b50e08c 100644 --- a/run-pre-commit/action.yaml +++ b/run-pre-commit/action.yaml @@ -127,6 +127,7 @@ runs: - name: Install Install jinja2-cli if: ${{ inputs.jinja2-cli }} + shell: bash env: JINJA2_CLI_VERSION: ${{ inputs.jinja2-cli }} run: pip install jinja2-cli==${JINJA2_CLI_VERSION} From c820693040c89c6b963846d0eb8fb97370307878 Mon Sep 17 00:00:00 2001 From: xeniape Date: Tue, 25 Nov 2025 10:46:02 +0100 Subject: [PATCH 3/5] update name --- run-pre-commit/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-pre-commit/action.yaml b/run-pre-commit/action.yaml index b50e08c..95103dc 100644 --- a/run-pre-commit/action.yaml +++ b/run-pre-commit/action.yaml @@ -125,7 +125,7 @@ runs: echo "$LOCATION_DIR" | tee -a "$GITHUB_PATH" - - name: Install Install jinja2-cli + - name: Install jinja2-cli if: ${{ inputs.jinja2-cli }} shell: bash env: From b795d5d6ccef1e5213b80368e3bcba89d745a25a Mon Sep 17 00:00:00 2001 From: xeniape Date: Tue, 25 Nov 2025 11:03:27 +0100 Subject: [PATCH 4/5] test jinja2 installation --- .github/workflows/pr_pre-commit.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr_pre-commit.yml b/.github/workflows/pr_pre-commit.yml index 804d230..05da0d3 100644 --- a/.github/workflows/pr_pre-commit.yml +++ b/.github/workflows/pr_pre-commit.yml @@ -14,3 +14,5 @@ jobs: submodules: recursive fetch-depth: 0 - uses: ./run-pre-commit + with: + jinja2-cli: 0.8.2 From a2d247201918501ee283c46839fd79601ac50454 Mon Sep 17 00:00:00 2001 From: xeniape Date: Tue, 25 Nov 2025 11:07:12 +0100 Subject: [PATCH 5/5] remove jinja2 test --- .github/workflows/pr_pre-commit.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pr_pre-commit.yml b/.github/workflows/pr_pre-commit.yml index 05da0d3..804d230 100644 --- a/.github/workflows/pr_pre-commit.yml +++ b/.github/workflows/pr_pre-commit.yml @@ -14,5 +14,3 @@ jobs: submodules: recursive fetch-depth: 0 - uses: ./run-pre-commit - with: - jinja2-cli: 0.8.2