Skip to content

Commit 8777a96

Browse files
waveywavestekton-robot
authored andcommitted
docs: parameter substitution precedence
1 parent 68d09e3 commit 8777a96

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/stepactions.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,21 @@ spec:
136136

137137
**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`.
138138

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+
139154
### Emitting Results
140155

141156
A `StepAction` also declares the results that it will emit.

0 commit comments

Comments
 (0)