mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-06 15:20:29 +00:00
Detect workflow event type
This commit is contained in:
1 parent
32c1ec97e6
commit
96065fe807
2 files changed
+15
-12
No files matched your search
@@ -55,18 +55,9 @@ func (runner *runnerImpl) setupWorkflows() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
defer workflowReader.Close()
|
||||
|
||||
runner.workflowConfig, err = parser.Parse(workflowReader)
|
||||
/*
|
||||
if err != nil {
|
||||
parserError := err.(*parser.ParserError)
|
||||
for _, e := range parserError.Errors {
|
||||
fmt.Fprintln(os.Stderr, e)
|
||||
}
|
||||
}
|
||||
*/
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user