Skip to content

Commit 26ccb9b

Browse files
authored
Update README with latest action versions. (#99)
Signed-off-by: Andy Brody <git@abrody.com>
1 parent b572e07 commit 26ccb9b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ The default configuration installs the latest version of OpenTofu CLI and instal
1616

1717
```yaml
1818
steps:
19-
- uses: opentofu/setup-opentofu@v1
19+
- uses: opentofu/setup-opentofu@v2
2020
```
2121
2222
A specific version of OpenTofu CLI can be installed:
2323
2424
```yaml
2525
steps:
26-
- uses: opentofu/setup-opentofu@v1
26+
- uses: opentofu/setup-opentofu@v2
2727
with:
2828
tofu_version: 1.6.0
2929
```
@@ -32,7 +32,7 @@ You can also specify the version in a file (e.g., `.opentofu-version`):
3232

3333
```yaml
3434
steps:
35-
- uses: opentofu/setup-opentofu@v1
35+
- uses: opentofu/setup-opentofu@v2
3636
with:
3737
tofu_version_file: .opentofu-version
3838
```
@@ -43,7 +43,7 @@ Credentials for Terraform Cloud ([app.terraform.io](https://app.terraform.io/))
4343

4444
```yaml
4545
steps:
46-
- uses: opentofu/setup-opentofu@v1
46+
- uses: opentofu/setup-opentofu@v2
4747
with:
4848
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
4949
```
@@ -52,7 +52,7 @@ Credentials for Terraform Enterprise (TFE) can be configured:
5252

5353
```yaml
5454
steps:
55-
- uses: opentofu/setup-opentofu@v1
55+
- uses: opentofu/setup-opentofu@v2
5656
with:
5757
cli_config_credentials_hostname: 'tofu.example.com'
5858
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
@@ -62,7 +62,7 @@ The wrapper script installation can be skipped by setting the `tofu_wrapper` var
6262

6363
```yaml
6464
steps:
65-
- uses: opentofu/setup-opentofu@v1
65+
- uses: opentofu/setup-opentofu@v2
6666
with:
6767
tofu_wrapper: false
6868
```
@@ -71,7 +71,7 @@ Caching can be enabled to reduce download time on subsequent workflow runs by st
7171

7272
```yaml
7373
steps:
74-
- uses: opentofu/setup-opentofu@v1
74+
- uses: opentofu/setup-opentofu@v2
7575
with:
7676
cache: true
7777
```
@@ -80,7 +80,7 @@ Subsequent steps can access outputs when the wrapper script is installed:
8080

8181
```yaml
8282
steps:
83-
- uses: opentofu/setup-opentofu@v1
83+
- uses: opentofu/setup-opentofu@v2
8484
8585
- run: tofu init
8686
@@ -107,8 +107,8 @@ defaults:
107107
permissions:
108108
pull-requests: write
109109
steps:
110-
- uses: actions/checkout@v3
111-
- uses: opentofu/setup-opentofu@v1
110+
- uses: actions/checkout@v6
111+
- uses: opentofu/setup-opentofu@v2
112112
113113
- name: OpenTofu fmt
114114
id: fmt
@@ -175,8 +175,8 @@ defaults:
175175
permissions:
176176
pull-requests: write
177177
steps:
178-
- uses: actions/checkout@v3
179-
- uses: opentofu/setup-opentofu@v1
178+
- uses: actions/checkout@v6
179+
- uses: opentofu/setup-opentofu@v2
180180

181181
- name: OpenTofu fmt
182182
id: fmt

0 commit comments

Comments
 (0)