You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if remote-run-id "$STEP_TMP_DIR/terraform_apply.stdout">"$STEP_TMP_DIR/remote-run-id.stdout"2>"$STEP_TMP_DIR/remote-run-id.stderr";then
58
+
fi
59
+
set -e
60
+
61
+
if [[ "$TERRAFORM_BACKEND_TYPE"=="cloud"||"$TERRAFORM_BACKEND_TYPE"=="remote" ]];then
62
+
if remote-run-id "$STEP_TMP_DIR/terraform_apply.stdout""$STEP_TMP_DIR/terraform_apply.stderr">"$STEP_TMP_DIR/remote-run-id.stdout"2>"$STEP_TMP_DIR/remote-run-id.stderr";then
55
63
RUN_ID="$(<"$STEP_TMP_DIR/remote-run-id.stdout")"
56
64
set_output run_id "$RUN_ID"
57
65
else
58
66
debug_log "Failed to get remote run-id"
59
67
debug_file "$STEP_TMP_DIR/remote-run-id.stderr"
60
68
fi
61
69
fi
62
-
set -e
63
70
64
-
if [[ $APPLY_EXIT-eq 0 ]];then
71
+
if [[ "$TERRAFORM_BACKEND_TYPE"=="cloud"&&$APPLY_EXIT-ne 0 ]] && grep -q "Error: Saved plan has no changes""$STEP_TMP_DIR/terraform_apply.stderr";then
Copy file name to clipboardExpand all lines: image/entrypoints/plan.sh
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -27,16 +27,6 @@ fi
27
27
28
28
cat "$STEP_TMP_DIR/terraform_plan.stderr"
29
29
30
-
if [[ -z"$PLAN_OUT" ]];then
31
-
if remote-run-id "$STEP_TMP_DIR/terraform_plan.stdout">"$STEP_TMP_DIR/remote-run-id.stdout"2>"$STEP_TMP_DIR/remote-run-id.stderr";then
32
-
RUN_ID="$(<"$STEP_TMP_DIR/remote-run-id.stdout")"
33
-
set_output run_id "$RUN_ID"
34
-
else
35
-
debug_log "Failed to get remote run-id"
36
-
debug_file "$STEP_TMP_DIR/remote-run-id.stderr"
37
-
fi
38
-
fi
39
-
40
30
if [[ "$GITHUB_EVENT_NAME"=="pull_request"||"$GITHUB_EVENT_NAME"=="issue_comment"||"$GITHUB_EVENT_NAME"=="pull_request_review_comment"||"$GITHUB_EVENT_NAME"=="pull_request_target"||"$GITHUB_EVENT_NAME"=="pull_request_review"||"$GITHUB_EVENT_NAME"=="repository_dispatch" ]];then
41
31
if [[ "$INPUT_ADD_GITHUB_COMMENT"=="true"||"$INPUT_ADD_GITHUB_COMMENT"=="changes-only"||"$INPUT_ADD_GITHUB_COMMENT"=="always-new" ]];then
0 commit comments