Skip to content

Commit

Permalink
Update github_files.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold authored and GitHub committed Mar 22, 2025
1 parent bc4bf58 commit fc048ac
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions github_files.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ resource "github_repository_file" "codeowners" {
commit_author = var.commit_author
commit_email = var.commit_email
overwrite_on_create = true
depends_on = [github_repository.repo]
depends_on = [
github_repository.repo,
github_branch_protection.protection
]
lifecycle {
ignore_changes = [
content,
Expand Down Expand Up @@ -60,7 +63,10 @@ resource "github_repository_file" "extra_files" {
commit_author = var.commit_author
commit_email = var.commit_email
overwrite_on_create = true
depends_on = [github_repository.repo]
depends_on = [
github_repository.repo,
github_branch_protection.protection
]
lifecycle {
ignore_changes = [
content,
Expand All @@ -80,7 +86,10 @@ resource "github_repository_file" "managed_extra_files" {
commit_author = var.commit_author
commit_email = var.commit_email
overwrite_on_create = true
depends_on = [github_repository.repo]
depends_on = [
github_repository.repo,
github_branch_protection.protection
]
lifecycle {
ignore_changes = [
branch
Expand Down

0 comments on commit fc048ac

Please sign in to comment.