Expose SetJob to make EraseNeeds work (#35)

Related to #33

Reviewed-on: https://gitea.com/gitea/act/pulls/35
Reviewed-by: Lunny Xiao <[email protected]>
This commit is contained in:
Jason Song committed 2023-03-29 13:57:29 +08:00
1 parent 342ad6a51a
commit 2eb4de02ee
7 files changed
+89 -13

No files matched your search

+2 -2
View File
@@ -61,8 +61,8 @@ func Parse(content []byte, options ...ParseOption) ([]*SingleWorkflow, error) {
Env: workflow.Env,
Defaults: workflow.Defaults,
}
if err := swf.setJob(id, job); err != nil {
return nil, fmt.Errorf("setJob: %w", err)
if err := swf.SetJob(id, job); err != nil {
return nil, fmt.Errorf("SetJob: %w", err)
}
ret = append(ret, swf)
}