hashicorp / hashicorp/setup-terraform

Read terraform version from a .terraformrc file

Open
#208 13 comments 26 reactions 1 assignee Claimed by @bflad View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
288
Avg merge
23h 21m
Merged PRs (30d)
3

Description

Instead of hard coding the version in the workflow, it would be nice to have it read it from a file similar to how [`actions/setup-node@v3`](https://github.com/actions/setup-node) reads from `.nvmrc`

```yaml
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
```

Something like this perhaps ?

```yaml
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version_file: '.terraformrc'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.