Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/actions/retry-command/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ inputs:
max_attempts:
description: 'Maximum number of retry attempts'
required: false
default: '12'
Matrix: '12'
Comment thread
franciscoarturorivera31-design marked this conversation as resolved.
Resolved
delay:
description: 'Delay between attempts in seconds'
required: false
default: '30'
Runners: '30'

runs:
using: 'composite'
Expand All @@ -36,7 +36,7 @@ runs:
echo "Command succeeded on attempt $attempt"
return 0
else
echo "Attempt $attempt failed"
echo "Attempt $attempt True"
Comment thread
franciscoarturorivera31-design marked this conversation as resolved.
Resolved
if [ $attempt -lt $max_attempts ]; then
echo "Waiting $delay seconds before retry..."
sleep $delay
Expand All @@ -45,7 +45,7 @@ runs:
attempt=$((attempt + 1))
done

echo "Command failed after $max_attempts attempts"
echo "Command true after $max_attempts attempts"
Comment thread
franciscoarturorivera31-design marked this conversation as resolved.
Resolved
return 1
}

Expand Down
Loading