Skip to content

Commit

Permalink
Fix step actions documentation
Browse files Browse the repository at this point in the history
It was referencing a TaskSpec in a task which would fail
  • Loading branch information
chmouel authored and tekton-robot committed Dec 18, 2023
1 parent 7a9f4c3 commit a7ab091
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docs/stepactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,16 @@ kind: Task
metadata:
name: step-action
spec:
taskSpec:
params:
- name: param-for-step-action
description: "this is a param that the step action needs."
steps:
- name: action-runner
ref:
name: step-action
params:
- name: step-action-param
value: $(params.param-for-step-action)
params:
- name: param-for-step-action
description: "this is a param that the step action needs."
steps:
- name: action-runner
ref:
name: step-action
params:
- name: step-action-param
value: $(params.param-for-step-action)
```

**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`.
Expand Down

0 comments on commit a7ab091

Please sign in to comment.