Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
feat: exit with exit code 1 when builds fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Hoffman committed Feb 10, 2020
1 parent 8ed2396 commit 4d6d0d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ ${output}

echo "${payload}" | curl -s -S -H "Authorization: token ${GITHUB_TOKEN}" --header "Content-Type: application/json" --data @- "${commentsURL}" > /dev/null
fi

if [ "${exitCode}" == "1" ]; then
exit 1
fi
}

function main(){
Expand Down

0 comments on commit 4d6d0d9

Please sign in to comment.