close
Skip to content

core.getInput treats YAML booleans as strings #361

@andrewdhazlett

Description

@andrewdhazlett

Describe the bug
When I try to use a boolean value in my action.yaml file or workflow definition and retrieve it using core.getInput the result is a string.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://github.com/andrewdhazlett/gh-action-boolean-input-repro'
  2. Click on 'Actions > gh-action-boolean-input-repro > Bug repro'
  3. Scroll down to Run /./
  4. See error

Expected behavior
No error is thrown, the input is interpreted as a boolean

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions