Skip to content

Commit c331c93

Browse files
committed
Update example. Resolves #2718
Signed-off-by: Timo Sand <[email protected]>
1 parent 54bbc9b commit c331c93

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/resources/actions_environment_variable.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ This resource allows you to create and manage GitHub Actions variables within yo
1313
```terraform
1414
resource "github_actions_environment_variable" "example_variable" {
1515
environment = "example_environment"
16-
variable_name = "example_variable_name"
16+
repository = "example_repository"
1717
value = "example_variable_value"
18+
variable_name = "example_variable_name"
1819
}
1920
```
2021

@@ -54,6 +55,6 @@ The following arguments are supported:
5455

5556
This resource can be imported using an ID made up of the repository name, environment name, and variable name:
5657

57-
```
58+
```sh
5859
$ terraform import github_actions_environment_variable.test_variable myrepo:myenv:myvariable
5960
```
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
resource "github_actions_environment_variable" "example_variable" {
22
environment = "example_environment"
3-
variable_name = "example_variable_name"
3+
repository = "example_repository"
44
value = "example_variable_value"
5+
variable_name = "example_variable_name"
56
}

templates/resources/actions_environment_variable.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ The following arguments are supported:
3636

3737
This resource can be imported using an ID made up of the repository name, environment name, and variable name:
3838

39-
```
39+
```sh
4040
$ terraform import github_actions_environment_variable.test_variable myrepo:myenv:myvariable
4141
```

0 commit comments

Comments
 (0)