Skip to content

Commit

Permalink
Merge branch 'main' of github.com:HappyPathway/terraform-github-repo …
Browse files Browse the repository at this point in the history
…into create_repo
  • Loading branch information
Dave Arnold committed Feb 19, 2025
2 parents 03c31c9 + 7b0b311 commit 0d9f263
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions github_files.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ locals {

resource "github_repository_file" "extra_files" {
for_each = tomap({ for file in local.extra_files : "${element(split("/", file.path), length(split("/", file.path)) - 1)}" => file })

repository = local.repository_name
branch = var.github_default_branch
file = each.value.path
Expand All @@ -63,6 +64,7 @@ resource "github_repository_file" "extra_files" {

resource "github_repository_file" "managed_extra_files" {
for_each = tomap({ for file in var.managed_extra_files : "${element(split("/", file.path), length(split("/", file.path)) - 1)}" => file })

repository = local.repository_name
branch = var.github_default_branch
file = each.value.path
Expand Down

0 comments on commit 0d9f263

Please sign in to comment.