Skip to content

[GitHub Actions] environment type missing in workflow input types documentation #25938

@mikelei8291

Description

@mikelei8291

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputsinput_idtype

https://docs.github.com/en/actions/learn-github-actions/contexts#inputs-context

What part(s) of the article would you like to see updated?

environment type should be added to the list of allowed types.

This type had been in the list of allowed types before #25435 was opened and it was considered as a typo of "number". The environment type is indeed not listed in the table of all available types in the inputs context documentation, but it is used in an example in the on.workflow_dispatch.inputs documentation, and in real world applications as mentioned by @nathanchapman in this comment.

Therefore, I don't think this is a typo, but a miss in the documentations linked above, and would like it to be added back to the documentations.

Someone familiar with the action runner code could also clarify whether the environment type is allowed, or is it about to be removed.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamhelp wantedAnyone is welcome to open a pull request to fix this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions