-
-
Notifications
You must be signed in to change notification settings - Fork 811
unable to template 'internal' field of task #2769
Copy link
Copy link
Open
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.
Description
Description
I would like to dynamically hide some tasks, depending on some variable's value. But it seems that the result is always a string - which is rejected by the task's internal field - even if the resulting value is a bool.
err: cannot unmarshal !!str `{{ eq (...` into bool
Version
3.48.0
Operating system
macOS
Experiments Enabled
No response
Example Taskfile
version: 3
tasks:
foo: # this task should only be visible if FOO is not empty
desc: Print FOO
cmds:
- 'echo {{ .FOO }}'
internal: '{{ eq ( .FOO | default "" ) "" }}'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.
Type
Fields
Give feedbackNo fields configured for issues without a type.