mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-29 19:44:21 +01:00
feat: support .tool-versions (asdf format) in tofu_version_file (#131)
Signed-off-by: somaz <genius5711@gmail.com>
This commit is contained in:
1 parent
7f68c568ed
commit
37a417e5ae
4 files changed
+49
-6
No files matched your search
@@ -37,6 +37,11 @@ steps:
|
||||
tofu_version_file: .opentofu-version
|
||||
```
|
||||
|
||||
`tofu_version_file` accepts two formats:
|
||||
|
||||
- A single-line file containing just the version (e.g., `.opentofu-version` with `1.9.0`).
|
||||
- An asdf-format `.tool-versions` file containing an `opentofu <version>` line. Other tool entries in the same file are ignored.
|
||||
|
||||
Supported version syntax is the same as for the `tofu_version` input. If both `tofu_version` and `tofu_version_file` are provided, the version number in the file takes precedence.
|
||||
|
||||
Credentials for Terraform Cloud ([app.terraform.io](https://app.terraform.io/)) can be configured:
|
||||
|
||||
Reference in new issue
Block a user