Skip to content

Commit

Permalink
Merge pull request mage-os#89 from sprankhub/remove-archived-website-…
Browse files Browse the repository at this point in the history
…repo

Ignore archived repos, mage-os#88
  • Loading branch information
Vinai committed Jun 18, 2024
2 parents 8b7d20f + 75e5877 commit 7a50f2c
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 7a50f2c

Please sign in to comment.