-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for .terraform-version
file
#298
Comments
Something like this logic would work perfect |
Then later you can |
@Crisfole this is a good workaround, but the idea is to have built-in solution like other actions have (https://github.com/actions/setup-node or https://github.com/actions/setup-python) Also please fix your snippet. It should be |
There are other tools on the market that uses this mechanism, like Mend Renovate for creating automated pull requests for dependency updates: https://docs.renovatebot.com/modules/manager/terraform-version/ |
Oh, for sure! But two years from now when I Google this again I want to have that comment available to me! 😆 |
Same way
actions/setup-node
oractions/setup-python
handle setting version from a file.It could default to
.terraform-version
file astfenv
already uses it: https://github.com/tfutils/tfenv#terraform-version-file and matches pattern for other actions.The text was updated successfully, but these errors were encountered: