Skip to content

Commit

Permalink
entrypoint.sh: set pipefail to fail action if go test -bench fails (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi authored Jan 12, 2023
1 parent e219e63 commit e047cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -e pipefail

# core configuration
export GO_BINARY="${GO_BINARY:-"go"}"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e047cc1

Please sign in to comment.