feat: support terraform_version_file#454
Conversation
terraform_version_file
|
|
||
| If the `terraform_version_file` input is specified, the action will extract the version from the file and install it. | ||
|
|
||
| Supported files names are `.tool-versions` or anything else. |
There was a problem hiding this comment.
We use .terraform-version which is a quasi-standard for Terraform: https://github.com/tfutils/tfenv?tab=readme-ov-file#terraform-version-file.
There was a problem hiding this comment.
Do you mean replace or anything else. for .terraform-version?
I think keeping compatibility with https://github.com/asdf-vm/asdf by using .tool-versions is a good idea, for instance, some other GitHub actions use it:
There was a problem hiding this comment.
The Java action also supports .java-version: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md.
I think it would be good to mention .terraform-version specifically because a lot of people are probably using it.
|
Is there a chance we could bake in support for the |
Closes #298 and #208
What
Add support for
terraform_version_fileinput and keep the backward compatibility to uselatestif both inputs are set or onlyterraform_version.Why
Take advantage of the existing tools such as https://github.com/asdf-vm/asdf
Use a similar mechanism done in some other
setup-<app> actions.Similar PRs
I was blind, and I didn't see any references to them in the GH issues :/