Skip to content

Commit

Permalink
Don't post markdown update when there are no failures
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasyl committed Jul 3, 2023
1 parent 6632618 commit 13ec4de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ set -eo pipefail

summary=$(java -jar ftl-tests-results-r8.jar --merged-results="$INPUT_MERGED_RESULT_FILE")

delimiter=$(openssl rand -hex 20)
echo "summary-markdown<<$delimiter" >> $GITHUB_OUTPUT
echo "$summary" >> $GITHUB_OUTPUT
echo "$delimiter" >> $GITHUB_OUTPUT
if [ ! -z "failures" ]; then
delimiter=$(openssl rand -hex 20)
echo "summary-markdown<<$delimiter" >> $GITHUB_OUTPUT
echo "$summary" >> $GITHUB_OUTPUT
echo "$delimiter" >> $GITHUB_OUTPUT
fi

echo "$summary" >> $GITHUB_STEP_SUMMARY

0 comments on commit 13ec4de

Please sign in to comment.