Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,8 @@ You can configure custom-defined input properties, default input values, and req

This example defines inputs called `logLevel`, `tags`, and `environment`. You pass values for these inputs to the workflow when you run it. This workflow then prints the values to the log, using the `inputs.logLevel`, `inputs.tags`, and `inputs.environment` context properties.

When you use `type: environment`, GitHub shows the workflow's environment names as the available values for that input.

```yaml
on:
workflow_dispatch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ A boolean specifying whether the input must be supplied.

The value of this parameter is a string specifying the data type of the input. This must be one of: `boolean`, `choice`, `number`, `environment` or `string`.

The `environment` type is a special case that lets the workflow runner present the repository's available environments as the input choices.

## `permissions`

{% data reusables.actions.jobs.section-assigning-permissions-to-jobs %}
Expand Down
Loading