diff --git a/outputs.tf b/outputs.tf index 7c11c8c..2b04b55 100644 --- a/outputs.tf +++ b/outputs.tf @@ -45,9 +45,12 @@ output "visibility" { output "default_branch" { description = "Default branch of the repository" - value = var.create_repo ? github_repository.repo[0].default_branch : data.github_repository.existing[0].default_branch + value = var.create_repo ? var.github_default_branch : data.github_repository.existing[0].default_branch } +# resource "github_branch_default" "default_main_branch" { +# count = var.github_default_branch != "main" ? 1 : 0 + output "topics" { description = "List of topics applied to the repository" value = var.create_repo ? github_repository.repo[0].topics : data.github_repository.existing[0].topics