From 80ae5981070a173d00c885b7444de23d94e56bef Mon Sep 17 00:00:00 2001 From: Bezerra Date: Mon, 2 May 2022 16:39:21 -0300 Subject: [PATCH] feat: allow every repo on the organization On v0.5.0 this was possible, but the new validation broke the '*' use. --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 33ecb94..02f96ed 100644 --- a/variables.tf +++ b/variables.tf @@ -51,7 +51,7 @@ variable "github_repositories" { // organization/repository format used by GitHub. condition = length([ for repo in var.github_repositories : 1 - if length(regexall("^[A-Za-z0-9_.-]+?/[A-Za-z0-9_.-]+$", repo)) > 0 + if length(regexall("^[A-Za-z0-9_.-]+?/([A-Za-z0-9_.-]+|\*)$", repo)) > 0 ]) == length(var.github_repositories) error_message = "Repositories must be specified in the organization/repository format." }