Skip to content

Commit

Permalink
Revert "Allocate task's local index ID before only_if filtration (#204)…
Browse files Browse the repository at this point in the history
…" (#208)

This reverts commit 2f0d1d7.
  • Loading branch information
edigaryev authored Dec 25, 2020
1 parent 531cdf4 commit 8c21e2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ func (p *Parser) parseTasks(tree *node.Node) ([]task.ParseableTaskLike, error) {
}

taskLike.SetID(p.NextTaskID())
taskLike.SetIndexWithinBuild(p.NextTaskLocalIndex())

// Set task's name if not set in the definition
if taskLike.Name() == "" {
Expand All @@ -133,6 +132,8 @@ func (p *Parser) parseTasks(tree *node.Node) ([]task.ParseableTaskLike, error) {
continue
}

taskLike.SetIndexWithinBuild(p.NextTaskLocalIndex())

tasks = append(tasks, taskLike)
}
}
Expand Down

0 comments on commit 8c21e2f

Please sign in to comment.