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
Hi! Quite new to Dhall so sorry if this is a dumb question. I'm in the process of converting our entire GH CICD to Dhalll.
Github workflow files extend the standard YAML syntax, in that they allow you to add expressions which can be used to programmatically set variables and inputs for jobs. For example, in our use-case we generate a list of services that need to be re-deployed (call this job A), which is then used as the deployment field in the strategy.matrix key of a later job (call this job B). The strategy in GH workflow syntax looks like:
However with the current definition of Strategy a value in a matrix needs to be of type List Text, which makes the above impossible.
This isn't specific to strategy.matrix: from what I gather, almost any value in a workflow file can be replaced with a github expression. This is fine when the value is of type Text or Optional Text, but for any other type (like List Text above) it's impossible to use an expression.
Generic solution idea: we could wrap problematic types in a new polymorphic type, e.g.
Hi! Quite new to Dhall so sorry if this is a dumb question. I'm in the process of converting our entire GH CICD to Dhalll.
Github workflow files extend the standard YAML syntax, in that they allow you to add expressions which can be used to programmatically set variables and inputs for jobs. For example, in our use-case we generate a list of services that need to be re-deployed (call this job A), which is then used as the
deployment
field in thestrategy.matrix
key of a later job (call this job B). The strategy in GH workflow syntax looks like:However with the current definition of
Strategy
a value in a matrix needs to be of typeList Text
, which makes the above impossible.This isn't specific to
strategy.matrix
: from what I gather, almost any value in a workflow file can be replaced with a github expression. This is fine when the value is of typeText
orOptional Text
, but for any other type (likeList Text
above) it's impossible to use an expression.Generic solution idea: we could wrap problematic types in a new polymorphic type, e.g.
The text was updated successfully, but these errors were encountered: