Skip to content

Commit

Permalink
check string
Browse files Browse the repository at this point in the history
  • Loading branch information
andromaqui committed Feb 27, 2024
1 parent 573c780 commit 5dd9916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/rerun-failed-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
readarray -t array < <(echo "$errors" | jq -r '.[]')
for element in "${array[@]}"
do
# Check if the element exists in the $log string
error_count=$(echo "$logs" | grep -c "$element")
echo "error_count: $error_count"
if [[ $log =~ $element ]]; then
echo "Element '$element' found in log."
else
Expand Down

0 comments on commit 5dd9916

Please sign in to comment.