MCPcopy
hub / github.com/nektos/act / IfNot

Method IfNot

pkg/common/executor.go:208–215  ·  view source on GitHub ↗

IfNot only runs this executor if conditional is true

(conditional Conditional)

Source from the content-addressed store, hash-verified

206
207// IfNot only runs this executor if conditional is true
208func (e Executor) IfNot(conditional Conditional) Executor {
209 return func(ctx context.Context) error {
210 if !conditional(ctx) {
211 return e(ctx)
212 }
213 return nil
214 }
215}
216
217// IfBool only runs this executor if conditional is true
218func (e Executor) IfBool(conditional bool) Executor {

Callers 9

CreateMethod · 0.80
StartMethod · 0.80
CopyMethod · 0.80
CopyDirMethod · 0.80
UpdateFromEnvMethod · 0.80
UpdateFromImageEnvMethod · 0.80
ExecMethod · 0.80
RemoveMethod · 0.80
startJobContainerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected