You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: falsetype: stringpush_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: falsetype: boolean
I 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
So I have a reusable workflow and I put couple of inputs as an example here:
I get this error for the
push_image
input: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 booleanI think the logic is here:
actionlint/rule_events.go
Line 199 in bb1cfc3
The text was updated successfully, but these errors were encountered: