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

Method IfBool

pkg/common/executor.go:218–222  ·  view source on GitHub ↗

IfBool only runs this executor if conditional is true

(conditional bool)

Source from the content-addressed store, hash-verified

216
217// IfBool only runs this executor if conditional is true
218func (e Executor) IfBool(conditional bool) Executor {
219 return e.If(func(_ context.Context) bool {
220 return conditional
221 })
222}
223
224// Finally adds an executor to run after other executor
225func (e Executor) Finally(finally Executor) Executor {

Callers 4

StartMethod · 0.80
runUsesContainerMethod · 0.80
startJobContainerMethod · 0.80
execAsDockerFunction · 0.80

Calls 1

IfMethod · 0.95

Tested by

no test coverage detected