Skip to content

Commit 2a70753

Browse files
authored
Merge pull request #52 from aws-observability/clean-command-supress-fail
Prevent clean up command from failing retry
2 parents 369d3b1 + 8bb389a commit 2a70753

File tree

1 file changed

+1
-1
lines changed
  • .github/workflows/actions/execute_and_retry

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ runs:
5656
if [ $attempt_failed -ne 0 ]; then
5757
echo "Command failed for execute_and_retry action, executing cleanup command for another attempt"
5858

59-
eval "$CLEANUP"
59+
eval "$CLEANUP" || command_failed=$?
6060
retry_counter=$(($retry_counter+1))
6161
sleep "$SLEEP_TIME"
6262
else

0 commit comments

Comments
 (0)