Currently passing the version in as a static input from the calling workflow. A better approach is to use tfswitch to read the required terrafrom version
from the required_version defined in the terraform block.
btw. you can also use tenv that support Terraform as well as OpenTofu (and Terragrunt :) ) in one tool. It allow you to simplify version management and can do much more, than tfswitch.
Currently passing the version in as a static input from the calling workflow. A better approach is to use tfswitch to read the required terrafrom version from the
required_version
defined in the terraform block.