Skip to content

Replace old GHA choice input by type: boolean #1966

Closed
@Sinclert

Description

@Sinclert

This issue started as an informal conversation between @matthewfeickert and myself on Twitter.

If I am not mistaken, GitHub recently extended the possible values for the type field, when describing workflow parameters. Possible values for this field are: string, choice, environment and boolean (this is the blog post where the list was extended).

Therefore, any choice marked input, whose only options are true and false, can be simplified by stating type: boolean. I personally did this in a couple of projects, and this is how it looks like:

Screenshot 2022-08-27 at 17 13 10


I suggest you simplify the syntax of the following workflows:

Metadata

Metadata

Assignees

No one assigned

    Labels

    CICI systems, GitHub ActionschoreOther changes that don't modify src or test files

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions