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
Copy file name to clipboardExpand all lines: docs/stepactions.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,21 @@ spec:
136
136
137
137
**Note:** If a `Step` declares `params` for an `inlined Step`, it will also lead to a validation error. This is because an `inlined Step` gets its `params` from the `TaskRun`.
138
138
139
+
#### Parameter Substitution Precedence
140
+
141
+
When applying parameters to a StepAction, the substitutions are applied in the following order:
142
+
143
+
1. TaskRun parameter values in step parameters
144
+
2. Parameters from StepAction defaults
145
+
3. Parameters from the step (overwriting any defaults)
146
+
4. Step result replacements
147
+
148
+
This order ensures that:
149
+
- Step parameters can reference TaskRun parameters
150
+
- StepAction defaults provide fallback values
151
+
- Step-specific parameters take precedence over defaults
152
+
- Step result references are resolved last to allow referencing results from previous steps
153
+
139
154
### Emitting Results
140
155
141
156
A `StepAction` also declares the results that it will emit.
0 commit comments