Revert "fix: dont fail if reports were written"
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit cc78d173b7
.
This commit is contained in:
parent
cc78d173b7
commit
ecb35f8efc
@ -38,7 +38,7 @@ if [ -f "$CONFIG" ] && echo "$OUT" | grep -q "Done running Lighthouse"; then
|
||||
cp "${FILENAME}" "${DIST}/${FILENAME_NEW}.html"
|
||||
echo "Report for ${URL} will be uploaded to ${DOWNLOAD}"
|
||||
|
||||
echo "| [Link](${DOWNLOAD}) | \`${URL}\` | $(echo "scale=0;($PERF*100)/1" | bc) % | $(echo "scale=0;($ACCESS*100)/1" | bc) % | $(echo "scale=0;($PRACTICE*100)/1" | bc) % | $(echo "scale=0;($SEO*100)/1" | bc) % | $(echo "scale=0;($PWA*100)/1" | bc) % |" >>"${DIST}/summary.md"
|
||||
echo "| [Link]("${DOWNLOAD}") | \`${URL}\` | $(echo "scale=0;($PERF*100)/1" | bc) % | $(echo "scale=0;($ACCESS*100)/1" | bc) % | $(echo "scale=0;($PRACTICE*100)/1" | bc) % | $(echo "scale=0;($SEO*100)/1" | bc) % | $(echo "scale=0;($PWA*100)/1" | bc) % |" >> "${DIST}/summary.md"
|
||||
done
|
||||
else
|
||||
printf "\nPost-processing skipped. Manifest not found!\n"
|
||||
@ -46,6 +46,6 @@ if [ -f "$CONFIG" ] && echo "$OUT" | grep -q "Done running Lighthouse"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$ERROR" ] && ! (echo "$OUT" | grep -q "Done writing reports to disk"); then
|
||||
if [ -n "$ERROR" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user