Skip to content

Commit

Permalink
Fix dummy exit code
Browse files Browse the repository at this point in the history
2 means changes to apply
  • Loading branch information
dflook committed Jan 8, 2024
1 parent 6ff1261 commit ae876a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions image/entrypoints/apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ if [[ "$INPUT_PLAN_PATH" != "" ]]; then
exit 1
fi

PLAN_EXIT=0
PLAN_OUT=$INPUT_PLAN_PATH
PLAN_EXIT=2
else
plan

Expand Down Expand Up @@ -152,8 +153,7 @@ else
fi

if [[ "$INPUT_PLAN_PATH" != "" ]]; then
if github_pr_comment approved-binary "$INPUT_PLAN_PATH"; then
PLAN_OUT=$INPUT_PLAN_PATH
if github_pr_comment approved-binary "$PLAN_OUT"; then
apply
else
exit 1
Expand Down

0 comments on commit ae876a7

Please sign in to comment.