From 7880d440ce4a903c0fa852dc04f4107d3aa5efc9 Mon Sep 17 00:00:00 2001 From: Marko Kohtala Date: Fri, 24 Jul 2026 16:49:51 +0300 Subject: [PATCH] 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. --- .../reference/workflows-and-actions/workflow-syntax.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/actions/reference/workflows-and-actions/workflow-syntax.md b/content/actions/reference/workflows-and-actions/workflow-syntax.md index d6fca3f6cb13..028956f3d040 100644 --- a/content/actions/reference/workflows-and-actions/workflow-syntax.md +++ b/content/actions/reference/workflows-and-actions/workflow-syntax.md @@ -815,18 +815,18 @@ Input parameters defined for a Docker container must use `args`. For more inform ### Example of `jobs..steps[*].with` -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. +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. ```yaml jobs: my_first_job: steps: - name: My first step - uses: actions/hello_world@main + uses: actions/hello-world@main with: - first_name: Mona - middle_name: The - last_name: Octocat + first-name: Mona + middle-name: The + last-name: Octocat ``` ## `jobs..steps[*].with.args`