File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
actions/execute_and_retry Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 42
42
POST_COMMAND : ${{ inputs.post-command }}
43
43
SLEEP_TIME : ${{ inputs.sleep_time }}
44
44
run : |
45
- echo "Starting the execute_and_retry action"
45
+ echo "Starting the execute_and_retry action for command $COMMAND "
46
46
echo "Executing pre-command for the execute_and_retry action"
47
47
eval "$PRE_COMMAND"
48
48
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ execute_and_retry () {
13
13
command=$2
14
14
sleep_time=$3
15
15
cleanup=$4
16
- echo " Initiating execute_and_retry.sh script"
16
+ echo " Initiating execute_and_retry.sh script for command $command "
17
17
while [ $execute_retry_counter -lt $max_execute_retry ]; do
18
18
echo " Attempt Number $execute_retry_counter for execute_and_retry.sh"
19
19
attempt_failed=0
@@ -29,7 +29,7 @@ execute_and_retry () {
29
29
break
30
30
fi
31
31
32
- if (( $execute_retry_counter == $max_execute_retry )) ; then
32
+ if [ " $execute_retry_counter " -eq " $max_execute_retry " ] ; then
33
33
echo " Max retry reached, command failed to execute properly. Exiting execute_and_retry.sh script"
34
34
exit 1
35
35
fi
You can’t perform that action at this time.
0 commit comments