mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
fix pipe retry action (#8640)
This commit is contained in:
parent
0608d4c338
commit
33cf64377f
1 changed files with 2 additions and 2 deletions
4
.github/actions/flaky-retry/action.yml
vendored
4
.github/actions/flaky-retry/action.yml
vendored
|
|
@ -48,7 +48,7 @@ runs:
|
|||
fi
|
||||
|
||||
# Check if error matches retry condition
|
||||
if grep -q "${{ inputs.error_string_contains }}" "$output_file"; then
|
||||
if grep -Eq "${{ inputs.error_string_contains }}" "$output_file"; then
|
||||
echo "Command failed with exit code $exit_code and error output contains '${{ inputs.error_string_contains }}'"
|
||||
echo "Retrying..."
|
||||
attempt=$((attempt + 1))
|
||||
|
|
@ -89,7 +89,7 @@ runs:
|
|||
}
|
||||
|
||||
# Check if error matches retry condition
|
||||
if ($output -like "*${{ inputs.error_string_contains }}*") {
|
||||
if ($output -match "${{ inputs.error_string_contains }}") {
|
||||
Write-Host "Command failed with exit code $exitCode and error output contains '${{ inputs.error_string_contains }}'"
|
||||
Write-Host "Retrying..."
|
||||
$attempt++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue