diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index b95c518ce..1846df7a9 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -92,7 +92,10 @@ jobs: cat summary.txt >> $GITHUB_STEP_SUMMARY # Prepare the summary for Slack (escape newlines, remove [], remove .html, and escape special characters) + # Ignore lines starting with [TIMEOUT] on the next line or keep them in the following line ESCAPED_SUMMARY=$(awk '!/^\[TIMEOUT\]/ {printf "%s\\n", $0}' summary.txt | sed 's/\[//g; s/\]//g; s/\.html//g; s/"/\\"/g') + ESCAPED_SUMMARY=$(awk '{printf "%s\\n", $0}' summary.txt | sed 's/\[//g; s/\]//g; s/\.html//g; s/"/\\"/g') + echo "SUMMARY<> $GITHUB_ENV echo "$ESCAPED_SUMMARY" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV