From 02a34ab68a8d6da5467205082929c20657bc4f64 Mon Sep 17 00:00:00 2001 From: David Arnold <10138997+djaboxx@users.noreply.github.com> Date: Tue, 7 May 2024 09:08:56 -0700 Subject: [PATCH] create_codeowners --- github_files.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/github_files.tf b/github_files.tf index 07ae2a9..a1ef4d1 100644 --- a/github_files.tf +++ b/github_files.tf @@ -1,5 +1,6 @@ # https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_file resource "github_repository_file" "codeowners" { + count = var.create_codeowners ? 1 : 0 repository = github_repository.repo.name branch = var.github_default_branch file = "CODEOWNERS" @@ -26,4 +27,4 @@ resource "github_repository_file" "extra_files" { branch ] } -} \ No newline at end of file +}