mirror of
https://github.com/nektos/act.git
synced 2024-09-17 15:27:27 +03:00
fix: accept platforms name contained equal sigh
This commit is contained in:
parent
cd40f3fe9b
commit
157b0beac9
@ -14,9 +14,12 @@ func (i *Input) newPlatforms() map[string]string {
|
||||
|
||||
for _, p := range i.platforms {
|
||||
pParts := strings.Split(p, "=")
|
||||
if len(pParts) == 2 {
|
||||
platforms[strings.ToLower(pParts[0])] = pParts[1]
|
||||
}
|
||||
// pop operation
|
||||
pValue := pParts[len(pParts)-1]
|
||||
pParts = pParts[:len(pParts)-1]
|
||||
|
||||
pName := strings.Join(pParts, "=")
|
||||
platforms[strings.ToLower(pName)] = pValue
|
||||
}
|
||||
return platforms
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user