We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e9f11 commit fe3ac05Copy full SHA for fe3ac05
entrypoint.sh
@@ -68,8 +68,11 @@ function runCdk(){
68
echo "${output}"
69
70
commentStatus="Failed"
71
- if [ "${exitCode}" == "0" -o "${exitCode}" == "1" ]; then
+ if [ "${exitCode}" == "0" ]; then
72
commentStatus="Success"
73
+ elif [ "${exitCode}" != "0" ]; then
74
+ echo "CDK subcommand ${INPUT_CDK_SUBCOMMAND} for stack ${INPUT_CDK_STACK} has failed. See above console output for more details."
75
+ exit 1
76
fi
77
78
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${INPUT_ACTIONS_COMMENT}" == "true" ]; then
0 commit comments