Skip to content

Commit

Permalink
kind/fix: allow-pipelinetask-execution-evaluation v1beta1 src
Browse files Browse the repository at this point in the history
  • Loading branch information
ericzzzzzzz committed Jan 16, 2024
1 parent 411af65 commit 5340579
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/apis/pipeline/v1beta1/when_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ type WhenExpressions []WhenExpression
// if the Task should be skipped.
func (wes WhenExpressions) AllowsExecution(evaluatedCEL map[string]bool) bool {
for _, we := range wes {
if we.CEL != "" {
return evaluatedCEL[we.CEL]
}
if !we.isTrue() {
if !we.isTrue() || (we.CEL != "" && !evaluatedCEL[we.CEL]) {
return false
}
}
Expand Down

0 comments on commit 5340579

Please sign in to comment.