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.
2 parents 87cece7 + e019e3a commit 0d19eeaCopy full SHA for 0d19eea
entrypoint.sh
@@ -62,10 +62,12 @@ function installPipRequirements(){
62
63
function runCdk(){
64
echo "Run cdk ${INPUT_CDK_SUBCOMMAND} ${*} \"${INPUT_CDK_STACK}\""
65
- output=$(cdk ${INPUT_CDK_SUBCOMMAND} ${*} "${INPUT_CDK_STACK}" 2>&1)
+ set -o pipefail
66
+ cdk ${INPUT_CDK_SUBCOMMAND} ${*} "${INPUT_CDK_STACK}" 2>&1 | tee output.log
67
exitCode=${?}
68
+ set +o pipefail
69
echo ::set-output name=status_code::${exitCode}
- echo "${output}"
70
+ output=$(cat output.log)
71
72
commentStatus="Failed"
73
if [ "${exitCode}" == "0" ]; then
0 commit comments