From 755f58d2e00df7bc96dbcefd6a129ab2563ff59a Mon Sep 17 00:00:00 2001 From: Matheus Pinheiro <17935077+mp-pinheiro@users.noreply.github.com> Date: Thu, 21 Mar 2024 19:59:21 -0300 Subject: [PATCH] Changed check method --- action.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index d6b3b43..770df41 100644 --- a/action.yaml +++ b/action.yaml @@ -67,12 +67,16 @@ runs: if [[ -n "${{ inputs.RETRY_DELAY }}" ]]; then CMD="$CMD --retry-delay ${{ inputs.RETRY_DELAY }}" fi - if [[ -n "${{ inputs.RETRY_EXP_BACKOFF }}" =~ ^(true|True|TRUE)$ ]]; then + + shopt -s nocasematch + if [[ "${{ inputs.RETRY_EXP_BACKOFF }}" == "true" ]]; then CMD="$CMD --retry-exp-backoff" fi - if [[ "${{ inputs.DEBUG }}" =~ ^(true|True|TRUE)$ ]]; then + shopt -u nocasematch + + if [[ "${{ inputs.DEBUG }}" == "true" ]]; then CMD="$CMD --debug" fi echo "Running command: $CMD" - $CMD + eval $CMD shell: bash