-
Notifications
You must be signed in to change notification settings - Fork 198
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
So I have a reusable workflow and I put couple of inputs as an example here:
on:
workflow_call:
inputs:
image_name:
description: "Docker image name, such as the app name"
default: ${{ github.event.repository.name }}
required: false
type: string
push_image:
description: "Whether or not push the image to the registry. The default value will evaluate to 'false' on pull requests"
default: ${{ github.event_name != 'pull_request' }}
required: false
type: booleanI get this error for the push_image input:
input of workflow_call event "push_image" is typed as boolean. its default value must be true or false but got "${{ github.event_name != 'pull_request' }}" [events]
Since ${{ github.event_name != 'pull_request' }} evaluate to a boolean variable, I don't think this is a valid issue that is getting picked up by the linter.
I don't get any error on the image_name variable for string evaluation which is good and I expect the same for boolean
I think the logic is here:
Line 199 in bb1cfc3
| case WorkflowCallEventInputTypeBoolean: |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working