From 66c89fab31d36dfc58aa6af1761a7feb0e60786e Mon Sep 17 00:00:00 2001 From: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com> Date: Thu, 12 Nov 2026 19:33:33 +0000 Subject: [PATCH] fix: wrap piped `if` conditions in parentheses nushell reads `if $env.X | is-not-empty {` as `if $env.X` piped into another command, so the script fails to parse with "missing then_block" before cpp-linter starts. This broke every run of the action on this branch, whatever the inputs were. --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 8baf389d..152c745f 100644 --- a/action.yml +++ b/action.yml @@ -516,10 +516,10 @@ runs: if $env.INPUT_AUTO_FIX == 'true' { $args = ($args | append ['--fix']) } - if $env.INPUT_SUMMARY_OUTPUT_FILE | is-not-empty { + if ($env.INPUT_SUMMARY_OUTPUT_FILE | is-not-empty) { $args = $args | append [$"--summary-output-file=($env.INPUT_SUMMARY_OUTPUT_FILE)"] } - if $env.INPUT_DATABASE | is-not-empty { + if ($env.INPUT_DATABASE | is-not-empty) { $args = $args | append [$"--database=($env.INPUT_DATABASE)"] } mut uv_args = [run --no-sync --project $action_path --directory (pwd)]