Skip to content

Commit

Permalink
Ignore archived repos, #88
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub committed Jun 17, 2024
1 parent 8b7d20f commit 75e5877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ resource "github_branch_protection" "repositories-release-please" {
}

resource "github_branch_protection" "repositories" {
for_each = var.repositories
for_each = { for key, value in var.repositories : key => value if try(value.archived, false) == false }
repository_id = github_repository.repositories[each.key].node_id
pattern = "*"

Expand Down

0 comments on commit 75e5877

Please sign in to comment.