Skip to content

Commit 8f611ca

Browse files
authored
CICD-996: fail on annotations creation error (#25)
1 parent 58f9ebe commit 8f611ca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ annotate() {
130130
exit "${ORCA_EXIT_CODE}"
131131
fi
132132
mkdir -p "/app/${OUTPUT_FOR_JSON}"
133-
cp "${OUTPUT_FOR_JSON}/iac.json" "/app/${OUTPUT_FOR_JSON}/"
134-
cd /app || exit_with_err "error during annotations initiation"
133+
cp "${OUTPUT_FOR_JSON}/iac.json" "/app/${OUTPUT_FOR_JSON}/" || exit_with_err "error during annotations initiation"
134+
cd /app
135135
npm run build --if-present
136136
node dist/index.js
137137
}

src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function main() {
2424
setWorkflowStatus(process.env.ORCA_EXIT_CODE);
2525
} catch (e) {
2626
console.error(e);
27+
setWorkflowStatus(process.env.ORCA_EXIT_CODE);
2728
}
2829
}
2930

0 commit comments

Comments
 (0)