From e047cc1025521ab2321f225f370f140972ca3e01 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Thu, 12 Jan 2023 08:28:46 -0800 Subject: [PATCH] entrypoint.sh: set pipefail to fail action if go test -bench fails (#73) --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index bfd190b..c689ae8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -e pipefail # core configuration export GO_BINARY="${GO_BINARY:-"go"}" @@ -71,7 +71,7 @@ if [[ "${INPUT_PUBLISH}" == "true" || "${INPUT_CHECKS}" == "true" ]]; then --json ${CHECKS_OUTPUT} \ --flat RESULTS=$(cat ${CHECKS_OUTPUT}) - echo "checks-results=$RESULTS" >> ${GITHUB_OUTPUT} + echo "checks-results=$RESULTS" >>${GITHUB_OUTPUT} # output results echo