File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,10 @@ def get_step_output_variable_names(
107
107
variable_names : list [str ] = []
108
108
steps : list [dict [str , Any ]] = get_steps (definition )
109
109
for step in steps :
110
- if step ["name" ] == step_name :
111
- variable_names .extend (step .get ("out" , []))
110
+ if step ["name" ] == step_name and "plumbing" in step :
111
+ for v_map in step ["plumbing" ]:
112
+ if "to-project" in v_map :
113
+ variable_names .append (v_map ["variable" ])
112
114
return variable_names
113
115
114
116
@@ -122,8 +124,10 @@ def get_step_input_variable_names(
122
124
variable_names : list [str ] = []
123
125
steps : list [dict [str , Any ]] = get_steps (definition )
124
126
for step in steps :
125
- if step ["name" ] == step_name :
126
- variable_names .extend (step .get ("in" , []))
127
+ if step ["name" ] == step_name and "plumbing" in step :
128
+ for v_map in step ["plumbing" ]:
129
+ if "from-project" in v_map :
130
+ variable_names .append (v_map ["variable" ])
127
131
return variable_names
128
132
129
133
You can’t perform that action at this time.
0 commit comments