Skip to content

Commit

Permalink
Fix: look for [ERROR] in list-targets error log
Browse files Browse the repository at this point in the history
  • Loading branch information
elaguerta-nr committed May 24, 2024
1 parent 317c030 commit fada08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/fossa-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
fossa list-targets --format text 1>$LIST_TARGETS_OUT_FILE 2>$LIST_TARGETS_ERR_FILE || true
if [[ $(grep -i "error" $LIST_TARGETS_ERR_FILE | wc -l) -gt 0 ]]
if grep "\[ERROR\]" $LIST_TARGETS_ERR_FILE >/dev/null 2>&1
then
echo "::error::fossa list-targets ran with errors."
cat $LIST_TARGETS_ERR_FILE
Expand Down

0 comments on commit fada08f

Please sign in to comment.