github.1485827954.workers.dev/nektos/act@v0.2.63/cmd/platforms.go (about) 1 package cmd 2 3 import ( 4 "strings" 5 ) 6 7 func (i *Input) newPlatforms() map[string]string { 8 platforms := map[string]string{ 9 "ubuntu-latest": "node:16-buster-slim", 10 "ubuntu-22.04": "node:16-bullseye-slim", 11 "ubuntu-20.04": "node:16-buster-slim", 12 "ubuntu-18.04": "node:16-buster-slim", 13 } 14 15 for _, p := range i.platforms { 16 pParts := strings.Split(p, "=") 17 if len(pParts) == 2 { 18 platforms[strings.ToLower(pParts[0])] = pParts[1] 19 } 20 } 21 return platforms 22 }