minor CI fix to handle no PRs (#834)

* delete output escaping (forgot to remove it -- was used for the older system)
* stop early if there are no pull requests (e.g. in case this is a fork)
This commit is contained in:
Yuri Astrakhan
2020-04-27 03:42:37 -04:00
committed by GitHub
parent 75a47109ee
commit 33b91cee90
2 changed files with 9 additions and 10 deletions

View File

@@ -163,12 +163,6 @@ jobs:
rm results.json
mv pr-results.json ../artifacts/
# Convert multiline output into a single long string.
# See https://github.community/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/td-p/37870
OUTPUT="${OUTPUT//'%'/'%25'}"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
# Split into two parts -- before and after the ===== SUMMARY =====
OUT_SUMMARY="${OUTPUT##*========}"
OUT_DETAILS="${OUTPUT%%========*}"