From a38be9ec50955c652b0f7fb4e0d76755c9e90678 Mon Sep 17 00:00:00 2001 From: Dave Arnold Date: Tue, 18 Feb 2025 21:50:24 -0800 Subject: [PATCH] Add depends_on for repo_exists in github_files.tf to ensure proper resource management --- github_files.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github_files.tf b/github_files.tf index b3e2fb6..1480a92 100644 --- a/github_files.tf +++ b/github_files.tf @@ -17,7 +17,7 @@ resource "github_repository_file" "codeowners" { commit_author = var.commit_author commit_email = var.commit_email overwrite_on_create = true - + depends_on = [local.repo_exists] lifecycle { ignore_changes = [ content, @@ -62,7 +62,7 @@ resource "github_repository_file" "extra_files" { commit_author = var.commit_author commit_email = var.commit_email overwrite_on_create = true - + depends_on = [local.repo_exists] lifecycle { ignore_changes = [ content, @@ -82,7 +82,7 @@ resource "github_repository_file" "managed_extra_files" { commit_author = var.commit_author commit_email = var.commit_email overwrite_on_create = true - + depends_on = [local.repo_exists] lifecycle { ignore_changes = [ branch