📄
Parse Action Files
Parse GitHub Action YAML files (action.yml/action.yaml) with full type safety and validation.
Parse, validate and process GitHub Action YAML files with ease
Install the library:
go get github.com/scagogogo/github-action-parser
Parse an action file:
package main
import (
"fmt"
"github.com/scagogogo/github-action-parser/pkg/parser"
)
func main() {
action, err := parser.ParseFile("action.yml")
if err != nil {
panic(err)
}
fmt.Printf("Action: %s\n", action.Name)
fmt.Printf("Description: %s\n", action.Description)
}