Skip to content

Commit

Permalink
CICD-996: fail on annotations creation error (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayala-orca authored Jan 10, 2023
1 parent 58f9ebe commit 8f611ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ annotate() {
exit "${ORCA_EXIT_CODE}"
fi
mkdir -p "/app/${OUTPUT_FOR_JSON}"
cp "${OUTPUT_FOR_JSON}/iac.json" "/app/${OUTPUT_FOR_JSON}/"
cd /app || exit_with_err "error during annotations initiation"
cp "${OUTPUT_FOR_JSON}/iac.json" "/app/${OUTPUT_FOR_JSON}/" || exit_with_err "error during annotations initiation"
cd /app
npm run build --if-present
node dist/index.js
}
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function main() {
setWorkflowStatus(process.env.ORCA_EXIT_CODE);
} catch (e) {
console.error(e);
setWorkflowStatus(process.env.ORCA_EXIT_CODE);
}
}

Expand Down

0 comments on commit 8f611ca

Please sign in to comment.