Skip to content

Commit

Permalink
Changed check method
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-pinheiro committed Mar 21, 2024
1 parent 882c404 commit 755f58d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 755f58d

Please sign in to comment.