Support array expressions in runs-on (#2088)

* Support array expressions in runs-on

* Simplify appproach to use EvaluateYamlNode, fix case-sensitivity bug

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Jon Jensenandmergify[bot] authored and GitHub committed 2023-11-12 17:40:06 +00:00
1 parent 1c16fd1967
commit 610358e1c3
3 files changed
+67 -18

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ func (i *Input) newPlatforms() map[string]string {
for _, p := range i.platforms {
pParts := strings.Split(p, "=")
if len(pParts) == 2 {
platforms[pParts[0]] = pParts[1]
platforms[strings.ToLower(pParts[0])] = pParts[1]
}
}
return platforms