Skip to content

Commit

Permalink
Add depends_on for repo_exists in github_files.tf to ensure proper re…
Browse files Browse the repository at this point in the history
…source management
  • Loading branch information
Dave Arnold committed Feb 19, 2025
1 parent e7b71ac commit a38be9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github_files.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit a38be9e

Please sign in to comment.