Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit 9ea7a27

Browse files
committed
Only fix and show OUTPUT_PATH when it's defined
1 parent 4465fe6 commit 9ea7a27

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

entrypoint

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ cargo llvm-cov --no-run --doctests "${OUTPUT_ARGS[@]}"
7474
# Print summary including doc tests:
7575
cargo llvm-cov --no-run --doctests
7676

77-
sed -i "s@$GITHUB_WORKSPACE/@@" "$OUTPUT_PATH"
78-
7977
if [ -n "$OUTPUT_PATH" ]; then
78+
sed -i "s@$GITHUB_WORKSPACE/@@" "$OUTPUT_PATH"
79+
8080
echo "::set-output name=report::$OUTPUT_PATH"
81-
fi
8281

83-
if [ -n "$RUNNER_DEBUG" ]; then
84-
cat "$OUTPUT_PATH"
82+
if [ -n "$RUNNER_DEBUG" ]; then
83+
cat "$OUTPUT_PATH"
84+
fi
8585
fi

0 commit comments

Comments
 (0)