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:
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@@ -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%%========*}"
|
||||
|
||||
Reference in New Issue
Block a user