Skip to content

Commit

Permalink
Only append markdown if format isn't JSON (#101)
Browse files Browse the repository at this point in the history
Fixes #100
  • Loading branch information
flcdrg authored Apr 19, 2022
1 parent 3efe03d commit a03f369
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a03f369

Please sign in to comment.