Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertdeng123 committed Apr 13, 2023
1 parent 994645d commit c8b80ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ runs:
sentry-cli send-event -m "FOSSA scan failure" -t repo:$GITHUB_REPOSITORY -e url:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --logfile analyze_logs.txt
exit 0
fi
test_logs=$(cat test_logs.txt)
if [[ "$test_logs =~ /.*The scan has revealed issues. Number of issues found:.*/gm ]]; then
if grep -q "The scan has revealed issues. Number of issues found:" test_logs.txt; then
echo
echo "πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ πŸ›‘ "
echo
Expand Down

0 comments on commit c8b80ad

Please sign in to comment.