Skip to content

Unclear when to use expression syntax with literals #17869

Description

@schalkneethling

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/learn-github-actions/expressions#literals

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

The following section talks about the literal data types used with expression syntax. The example that follows seems to indicate that when specifying anything that is not meant to be a string should be set using expression syntax.

However, if one attempts to do this in, for example, the inputs section of a workflow, the validator shows an error that is quite the opposite:

Screenshot of validator tooltip status that a boolean was expected, but instead it got a string

On re-reading this part, I assume it is referring specifically to when setting environmental variables?

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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 teamneeds SMEThis proposal needs review from a subject matter expertnever-staleDo not close as stalewaiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions