Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/empty-hounds-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"generate-terraform-plan": minor
---

Remove unused backwards compatibility feature
11 changes: 0 additions & 11 deletions actions/generate-terraform-plan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,6 @@ runs:
shell: bash
working-directory: ${{ inputs.terraform_path }}
run: |
# Handle backward compatibility with tf_vars_json
if [[ -n "$TF_VARS_JSON" && "$TF_VARS_JSON" != "{}" ]]; then
echo "Warning: tf_vars_json is deprecated. Use TF_VAR_* environment variables instead."
# Convert JSON to TF_VAR_ environment variables for backward compatibility
echo "$TF_VARS_JSON" | jq -r 'to_entries | .[] | "export TF_VAR_\(.key)=\(.value)"' | while read -r line; do
if [[ -n "$line" ]]; then
eval "$line"
fi
done
fi

# Terraform locks state during `plan` by default for safety. In our workflow,
# only the plan produced on the configured base/apply branch (`pr_creation_branch`,
# usually `main`/`master`) is intended for a subsequent `apply`, and applies always
Expand Down
Loading