mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
This reverts commit54d3c0b84c
. `EraseNeeds` Shouldn't be used in `jobparser.Parse`, it's for023e61e678/models/actions/run.go (L200)
Or Gitea won't be able to get `Needs` of jobs. Reviewed-on: https://gitea.com/gitea/act/pulls/32 Reviewed-by: Zettat123 <zettat123@noreply.gitea.io>
This commit is contained in:
parent
4ed05ffe9f
commit
22e7c2d863
2 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,6 @@ func Parse(content []byte, options ...ParseOption) ([]*SingleWorkflow, error) {
|
|||
runsOn[i] = evaluator.Interpolate(v)
|
||||
}
|
||||
job.RawRunsOn = encodeRunsOn(runsOn)
|
||||
job.EraseNeeds() // there will be only one job in SingleWorkflow, it cannot have needs
|
||||
ret = append(ret, &SingleWorkflow{
|
||||
Name: workflow.Name,
|
||||
RawOn: workflow.RawOn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue