mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-12-01 20:24:34 +01:00
update(doc): add version to avoid error when copy pasting examples (#8)
Co-authored-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
1 parent
6cdd07fc43
commit
b06654f7ba
1 file changed
+8
-8
@@ -22,14 +22,14 @@ The default configuration installs the latest version of OpenTofu CLI and instal
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
```
|
```
|
||||||
|
|
||||||
A specific version of OpenTofu CLI can be installed:
|
A specific version of OpenTofu CLI can be installed:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
with:
|
with:
|
||||||
tofu_version: 1.6.0-alpha1
|
tofu_version: 1.6.0-alpha1
|
||||||
```
|
```
|
||||||
@@ -38,7 +38,7 @@ Credentials for Terraform Cloud ([app.terraform.io](https://app.terraform.io/))
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
with:
|
with:
|
||||||
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
@@ -47,7 +47,7 @@ Credentials for Terraform Enterprise (TFE) can be configured:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
with:
|
with:
|
||||||
cli_config_credentials_hostname: 'tofu.example.com'
|
cli_config_credentials_hostname: 'tofu.example.com'
|
||||||
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
||||||
@@ -57,7 +57,7 @@ The wrapper script installation can be skipped by setting the `tofu_wrapper` var
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
with:
|
with:
|
||||||
tofu_wrapper: false
|
tofu_wrapper: false
|
||||||
```
|
```
|
||||||
@@ -66,7 +66,7 @@ Subsequent steps can access outputs when the wrapper script is installed:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
|
|
||||||
- run: tofu init
|
- run: tofu init
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ permissions:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
|
|
||||||
- name: OpenTofu fmt
|
- name: OpenTofu fmt
|
||||||
id: fmt
|
id: fmt
|
||||||
@@ -162,7 +162,7 @@ permissions:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: opentofu/setup-opentofu
|
- uses: opentofu/setup-opentofu@v1
|
||||||
|
|
||||||
- name: OpenTofu fmt
|
- name: OpenTofu fmt
|
||||||
id: fmt
|
id: fmt
|
||||||
|
|||||||
Reference in new issue
Block a user