Chore: Improve levitate comment output (#79749)

* Test removing the icon component

* Use different component

* Replace \n with <br>

* Fix formatting

* Empty commit

* Improve formatting

* Fix breaking lines format

* Remove output

* Remove breaking change
This commit is contained in:
Esteban Beltran
2023-12-20 12:40:47 +00:00
committed by GitHub
parent ae3cb8231b
commit 234ccb886f
2 changed files with 8 additions and 10 deletions
+1 -4
View File
@@ -37,16 +37,13 @@ while IFS=" " read -r -a package; do
# Check if the comparison returned with a non-zero exit code
# Record the output, maybe with some additional information
STATUS=$?
CURRENT_REPORT=$(node ./scripts/levitate-parse-json-report.js)
echo $CURRENT_REPORT
# Final exit code
# (non-zero if any of the packages failed the checks)
if [ $STATUS -gt 0 ]; then
EXIT_CODE=1
GITHUB_MESSAGE="${GITHUB_MESSAGE}**\\\`${PACKAGE_PATH}\\\`** has possible breaking changes ([more info](${GITHUB_JOB_LINK}#step:${GITHUB_STEP_NUMBER}:1))<br />"
GITHUB_LEVITATE_MARKDOWN+="##${PACKAGE_PATH}\n${CURRENT_REPORT}\n"
GITHUB_LEVITATE_MARKDOWN+="<h3>${PACKAGE_PATH}</h3>${CURRENT_REPORT}<br>"
fi
done <<<"$PACKAGES"