Can one add actions to tasks during execution phase?
So you want dynamically to add actions to a task? Do you know about rules? They might help you www.gradle.org/docs/current/userguide/userguide_single.html#N10F58
As far as I understand rules processed after project evaluated, but before first task is executed. I want ‘configure’ task modify behavior of ‘worker’ tasks.
There is nothing special about adding actions to tasks during the execution phase. It works the same way as adding actions to tasks during the configuration phase.