tfaction v2 is a Single Action
Looking at the workflow from Getting Started, you can see that tfaction calls the same action multiple times with different values for the action input.
- uses: suzuki-shunsuke/tfaction@latest
with:
action: setup
# ...
- uses: suzuki-shunsuke/tfaction@latest
with:
action: terraform-init
# ...
- uses: suzuki-shunsuke/tfaction@latest
with:
action: plan
In tfaction v2, the action input switches the behavior of the action:
setup: Pre-processingterraform-init:terraform initplan:terraform planapply:terraform apply
For convenience, we sometimes refer to each behavior by its action input value (e.g., "setup action").
Using a single action improves both performance and maintainability.