From 1da200067f3e37760842729a2a0cb8b3c3468d55 Mon Sep 17 00:00:00 2001 From: Kishan Sairam Adapa Date: Tue, 30 Jul 2024 15:06:15 +0530 Subject: [PATCH] allow conditional trailing spaces check (#56) * allow conditional trailing spaces check * Update action.yml --- validate-charts/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validate-charts/action.yml b/validate-charts/action.yml index 63a7443..393a6f1 100644 --- a/validate-charts/action.yml +++ b/validate-charts/action.yml @@ -9,6 +9,10 @@ inputs: description: 'Arguments to be appended to lint and template commands such as "--set global.env=dev"' required: true default: '' + check-trailing-spaces: + description: 'Check no trailing spaces in helm template' + required: false + default: 'true' runs: using: "composite" steps: @@ -21,6 +25,7 @@ runs: helm template ${{ inputs.chart-path }} ${{ inputs.extra-args }} - name: Ensure no Trailing Spaces + if: inputs.check-trailing-spaces == 'true' shell: bash run: | output=$(helm template ${{ inputs.chart-path }} ${{ inputs.extra-args }} | sed -nE '/\S\s+$/p')