From 649b1ce85f518ec750c74d75de117e7778f802bd Mon Sep 17 00:00:00 2001 From: Krzysztof Pawlicki <75314467+krzysztof-pawlicki-nemo@users.noreply.github.com> Date: Thu, 26 Jan 2023 10:32:15 +0100 Subject: [PATCH 1/2] Update contexts.md Updated inputs context description with missing type `choice` information and provided more precise information about standard properties with the link to workflow dispatch event trigger for reference. --- content/actions/learn-github-actions/contexts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/actions/learn-github-actions/contexts.md b/content/actions/learn-github-actions/contexts.md index e0d07af699..60c0a37ec7 100644 --- a/content/actions/learn-github-actions/contexts.md +++ b/content/actions/learn-github-actions/contexts.md @@ -853,14 +853,14 @@ jobs: The `inputs` context contains input properties passed to an action{% ifversion actions-unified-inputs %},{% else %} or{% endif %} to a reusable workflow{% ifversion actions-unified-inputs %}, or to a manually triggered workflow{% endif %}. {% ifversion actions-unified-inputs %}For reusable workflows, the{% else %}The{% endif %} input names and types are defined in the [`workflow_call` event configuration](/actions/learn-github-actions/events-that-trigger-workflows#workflow-reuse-events) of a reusable workflow, and the input values are passed from [`jobs..with`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idwith) in an external workflow that calls the reusable workflow. {% ifversion actions-unified-inputs %}For manually triggered workflows, the inputs are defined in the [`workflow_dispatch` event configuration](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch) of a workflow.{% endif %} -There are no standard properties in the `inputs` context, only those which are defined in the workflow file. +The standard properties in the inputs are defined only for [`workflow_dispatch` event](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch). {% data reusables.actions.reusable-workflows-enterprise-beta %} | Property name | Type | Description | |---------------|------|-------------| | `inputs` | `object` | This context is only available in a [reusable workflow](/actions/learn-github-actions/reusing-workflows){% ifversion actions-unified-inputs %} or in a workflow triggered by the [`workflow_dispatch` event](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch){% endif %}. You can access this context from any job or step in a workflow. This object contains the properties listed below. | -| `inputs.` | `string` or `number` or `boolean` | Each input value passed from an external workflow. | +| `inputs.` | `string` or `number` or `boolean` or `choice` | Each input value passed from an external workflow. | ### Example contents of the `inputs` context From 8bf2afbbc547b0074c8bc5d31e51aa9b0ce6bd63 Mon Sep 17 00:00:00 2001 From: Sarah Edwards Date: Thu, 2 Feb 2023 09:24:22 -0800 Subject: [PATCH 2/2] modify wording --- content/actions/learn-github-actions/contexts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/actions/learn-github-actions/contexts.md b/content/actions/learn-github-actions/contexts.md index 60c0a37ec7..5066ab9243 100644 --- a/content/actions/learn-github-actions/contexts.md +++ b/content/actions/learn-github-actions/contexts.md @@ -853,7 +853,7 @@ jobs: The `inputs` context contains input properties passed to an action{% ifversion actions-unified-inputs %},{% else %} or{% endif %} to a reusable workflow{% ifversion actions-unified-inputs %}, or to a manually triggered workflow{% endif %}. {% ifversion actions-unified-inputs %}For reusable workflows, the{% else %}The{% endif %} input names and types are defined in the [`workflow_call` event configuration](/actions/learn-github-actions/events-that-trigger-workflows#workflow-reuse-events) of a reusable workflow, and the input values are passed from [`jobs..with`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idwith) in an external workflow that calls the reusable workflow. {% ifversion actions-unified-inputs %}For manually triggered workflows, the inputs are defined in the [`workflow_dispatch` event configuration](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch) of a workflow.{% endif %} -The standard properties in the inputs are defined only for [`workflow_dispatch` event](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch). +The properties in the `inputs` context are defined in the workflow file. They are only available in a [reusable workflow](/actions/learn-github-actions/reusing-workflows){% ifversion actions-unified-inputs %} or in a workflow triggered by the [`workflow_dispatch` event](/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch){% endif %} {% data reusables.actions.reusable-workflows-enterprise-beta %}