Skip to content

Commit 12be38c

Browse files
committed
Test
1 parent 7f6fa34 commit 12be38c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/actions/execute_and_retry/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ runs:
4242
POST_COMMAND: ${{ inputs.post-command }}
4343
SLEEP_TIME: ${{ inputs.sleep_time }}
4444
run: |
45-
echo "Starting the execute_and_retry action"
45+
echo "Starting the execute_and_retry action for command $COMMAND"
4646
echo "Executing pre-command for the execute_and_retry action"
4747
eval "$PRE_COMMAND"
4848

.github/workflows/util/execute_and_retry.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ execute_and_retry () {
1313
command=$2
1414
sleep_time=$3
1515
cleanup=$4
16-
echo "Initiating execute_and_retry.sh script"
16+
echo "Initiating execute_and_retry.sh script for command $command"
1717
while [ $execute_retry_counter -lt $max_execute_retry ]; do
1818
echo "Attempt Number $execute_retry_counter for execute_and_retry.sh"
1919
attempt_failed=0
@@ -29,7 +29,7 @@ execute_and_retry () {
2929
break
3030
fi
3131

32-
if (( $execute_retry_counter == $max_execute_retry )); then
32+
if [ "$execute_retry_counter" -eq "$max_execute_retry" ]; then
3333
echo "Max retry reached, command failed to execute properly. Exiting execute_and_retry.sh script"
3434
exit 1
3535
fi

0 commit comments

Comments
 (0)