From a03f36969dc41626229a182530a76b839300bb11 Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Wed, 20 Apr 2022 01:53:31 +0930 Subject: [PATCH] Only append markdown if format isn't JSON (#101) Fixes #100 --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 97f2674..e49c37b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -25,7 +25,10 @@ fi if [ $exit_code -ne 0 ]; then mkdir -p "$(dirname -- "${INPUT_OUTPUT}")" cat "${LYCHEE_TMP}" > "${INPUT_OUTPUT}" - echo "[Full Github Actions output](${GITHUB_WORKFLOW_URL})" >> "${INPUT_OUTPUT}" + + if [ "${INPUT_FORMAT}" == "markdown" ]; then + echo "[Full Github Actions output](${GITHUB_WORKFLOW_URL})" >> "${INPUT_OUTPUT}" + fi fi # Output to console