Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Aug 14, 2024
1 parent 3d54117 commit e948cfd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data "env0_github_installation_id" "example" {
repository = "https://github.com/env0/templates"
}

output "github_installation_id" {
value = data.env0_github_installation_id.example.github_installation_id
}
5 changes: 2 additions & 3 deletions tests/integration/004_template/expected_outputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"github_template_repository": "https://github.com/env0/templates",
"gitlab_template_repository": "https://gitlab.com/env0/gitlab-vcs-integration-tests.git",
"github_template_path": "/second",
"tg_tg_version" : "0.35.0",
"tg_tg_version": "0.35.0",
"data_github_template_type": "terraform",
"github_variables_name": "email",
"github_variables_value": "[email protected]",
"data_github_installation_id": 13321321
}
}
6 changes: 1 addition & 5 deletions tests/integration/004_template/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "env0_template" "github_template" {
}

data "env0_github_installation_id" "github_installation_id" {
repository = data.env0_template.github_template.repository
repository = data.env0_template.github_template.repository
}

resource "env0_template" "gitlab_template" {
Expand Down Expand Up @@ -164,7 +164,3 @@ output "tg_tg_version" {
output "data_github_template_type" {
value = data.env0_template.github_template.type
}

output "data_github_installation_id" {
value = data.env0_github_installation_id.github_installation_id.github_installation_id
}

0 comments on commit e948cfd

Please sign in to comment.