Skip to content

Commit a7ab091

Browse files
chmoueltekton-robot
authored andcommitted
Fix step actions documentation
It was referencing a TaskSpec in a task which would fail
1 parent 7a9f4c3 commit a7ab091

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

docs/stepactions.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,16 @@ kind: Task
120120
metadata:
121121
name: step-action
122122
spec:
123-
taskSpec:
124-
params:
125-
- name: param-for-step-action
126-
description: "this is a param that the step action needs."
127-
steps:
128-
- name: action-runner
129-
ref:
130-
name: step-action
131-
params:
132-
- name: step-action-param
133-
value: $(params.param-for-step-action)
123+
params:
124+
- name: param-for-step-action
125+
description: "this is a param that the step action needs."
126+
steps:
127+
- name: action-runner
128+
ref:
129+
name: step-action
130+
params:
131+
- name: step-action-param
132+
value: $(params.param-for-step-action)
134133
```
135134

136135
**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`.

0 commit comments

Comments
 (0)