Skip to content

Commit 9aeef98

Browse files
committed
Remove the deprecated var input
1 parent 260b981 commit 9aeef98

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

image/src/github_actions/inputs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class InitInputs(TypedDict):
1818
class PlanInputs(InitInputs):
1919
"""Common input variables for actions that generate a plan"""
2020
INPUT_VARIABLES: str
21-
INPUT_VAR: str
2221
INPUT_VAR_FILE: str
2322
INPUT_PARALLELISM: str
2423

image/src/github_pr_comment/__main__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ def format_classic_description(action_inputs: PlanPrInputs) -> str:
9999
if action_inputs["INPUT_BACKEND_CONFIG_FILE"]:
100100
label += f'\nWith backend config files: `{action_inputs["INPUT_BACKEND_CONFIG_FILE"]}`'
101101

102-
if action_inputs["INPUT_VAR"]:
103-
label += f'\nWith vars: `{action_inputs["INPUT_VAR"]}`'
104-
105102
if action_inputs["INPUT_VAR_FILE"]:
106103
label += f'\nWith var files: `{action_inputs["INPUT_VAR_FILE"]}`'
107104

@@ -153,13 +150,6 @@ def format_description(action_inputs: PlanPrInputs, sensitive_variables: List[st
153150
if action_inputs["INPUT_BACKEND_CONFIG_FILE"]:
154151
label += f'\nWith backend config files: `{action_inputs["INPUT_BACKEND_CONFIG_FILE"]}`'
155152

156-
if action_inputs["INPUT_VAR"]:
157-
label += '\n:warning: Using deprecated var input. Use the variables input instead.'
158-
if any(var_name in action_inputs["INPUT_VAR"] for var_name in sensitive_variables):
159-
label += '\nWith vars: (sensitive values)'
160-
else:
161-
label += f'\nWith vars: `{action_inputs["INPUT_VAR"]}`'
162-
163153
if action_inputs["INPUT_VAR_FILE"]:
164154
label += f'\nWith var files: `{action_inputs["INPUT_VAR_FILE"]}`'
165155

0 commit comments

Comments
 (0)