.github
.vscode
cmd
graph.go
input.go
list.go
platforms.go
root.go
secrets.go
pkg
.actrc
.editorconfig
.gitignore
.golangci.yml
.goreleaser.yml
.markdownlint.yml
.mega-linter.yml
.mergify.yml
.prettierignore
.prettierrc.yml
CODEOWNERS
CONTRIBUTING.md
IMAGES.md
LICENSE
Makefile
README.md
VERIFICATION
act-cli.nuspec
codecov.yml
go.mod
go.sum
install.sh
main.go
* feat: add node16 support Signed-off-by: hackercat <me@hackerc.at> * feat: bump images to node16 Signed-off-by: hackercat <me@hackerc.at> * lint(editorconfig): ignore *.md due to mixed style Signed-off-by: hackercat <me@hackerc.at> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
22 lines
404 B
Go
22 lines
404 B
Go
package cmd
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func (i *Input) newPlatforms() map[string]string {
|
|
platforms := map[string]string{
|
|
"ubuntu-latest": "node:16-buster-slim",
|
|
"ubuntu-20.04": "node:16-buster-slim",
|
|
"ubuntu-18.04": "node:16-buster-slim",
|
|
}
|
|
|
|
for _, p := range i.platforms {
|
|
pParts := strings.Split(p, "=")
|
|
if len(pParts) == 2 {
|
|
platforms[pParts[0]] = pParts[1]
|
|
}
|
|
}
|
|
return platforms
|
|
}
|