Skip to content

Commit 7880d44

Browse files
committed
Use dash in input parameter naming in workflow syntax example
Existing actions customarily use dash rather than underscore in action names and their inputs. The example should do the same to support consistent style.
1 parent 4f731f6 commit 7880d44

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

content/actions/reference/workflows-and-actions/workflow-syntax.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -815,18 +815,18 @@ Input parameters defined for a Docker container must use `args`. For more inform
815815

816816
### Example of `jobs.<job_id>.steps[*].with`
817817

818-
Defines the three input parameters (`first_name`, `middle_name`, and `last_name`) defined by the `hello_world` action. These input variables will be accessible to the `hello-world` action as `INPUT_FIRST_NAME`, `INPUT_MIDDLE_NAME`, and `INPUT_LAST_NAME` environment variables.
818+
Defines the three input parameters (`first-name`, `middle-name`, and `last-name`) defined by the `hello-world` action. These input variables will be accessible to the `hello-world` action as `INPUT_FIRST-NAME`, `INPUT_MIDDLE-NAME`, and `INPUT_LAST-NAME` environment variables.
819819

820820
```yaml
821821
jobs:
822822
my_first_job:
823823
steps:
824824
- name: My first step
825-
uses: actions/hello_world@main
825+
uses: actions/hello-world@main
826826
with:
827-
first_name: Mona
828-
middle_name: The
829-
last_name: Octocat
827+
first-name: Mona
828+
middle-name: The
829+
last-name: Octocat
830830
```
831831

832832
## `jobs.<job_id>.steps[*].with.args`

0 commit comments

Comments
 (0)