DynamicActions
A dynamic action ready to be passed to ctx.actions.dynamic_output_new().
DynamicActions represents a deferred computation that will read artifact contents and produce
outputs based on those contents. It is created by calling a DynamicActionsCallable (returned
by dynamic_actions()) with concrete artifact values.
Usage
# `my_dynamic` is a `DynamicActionsCallable` created with `dynamic_actions()`
dynamic_action = my_dynamic(
config = config_file,
out = output.as_output(),
)
# Declare the dynamic action in the build's action graph
ctx.actions.dynamic_output_new(dynamic_action)
See dynamic_actions() and DynamicActionsCallable for details on creating the factory function.