Skip to content

Commit ae876a7

Browse files
committed
Fix dummy exit code
2 means changes to apply
1 parent 6ff1261 commit ae876a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

image/entrypoints/apply.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ if [[ "$INPUT_PLAN_PATH" != "" ]]; then
8383
exit 1
8484
fi
8585

86-
PLAN_EXIT=0
86+
PLAN_OUT=$INPUT_PLAN_PATH
87+
PLAN_EXIT=2
8788
else
8889
plan
8990

@@ -152,8 +153,7 @@ else
152153
fi
153154

154155
if [[ "$INPUT_PLAN_PATH" != "" ]]; then
155-
if github_pr_comment approved-binary "$INPUT_PLAN_PATH"; then
156-
PLAN_OUT=$INPUT_PLAN_PATH
156+
if github_pr_comment approved-binary "$PLAN_OUT"; then
157157
apply
158158
else
159159
exit 1

0 commit comments

Comments
 (0)