mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-10-10 19:32:04 +00:00
pin to v1.0.0 of github action parser
This commit is contained in:
parent
9c3a288946
commit
eb25b2a615
116 changed files with 9431 additions and 3576 deletions
6
vendor/github.com/actions/workflow-parser/model/configuration.go
generated
vendored
6
vendor/github.com/actions/workflow-parser/model/configuration.go
generated
vendored
|
@ -1,5 +1,9 @@
|
|||
package model
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Configuration is a parsed main.workflow file
|
||||
type Configuration struct {
|
||||
Actions []*Action
|
||||
|
@ -52,7 +56,7 @@ func (c *Configuration) GetWorkflow(id string) *Workflow {
|
|||
func (c *Configuration) GetWorkflows(eventType string) []*Workflow {
|
||||
var ret []*Workflow
|
||||
for _, workflow := range c.Workflows {
|
||||
if IsMatchingEventType(workflow.On, eventType) {
|
||||
if strings.EqualFold(workflow.On, eventType) {
|
||||
ret = append(ret, workflow)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue