Skip to content

Commit

Permalink
feat: allow every repo on the organization
Browse files Browse the repository at this point in the history
On v0.5.0 this was possible, but the new validation broke the '*' use.
  • Loading branch information
pgbezerra authored May 2, 2022
1 parent 1df45cf commit 80ae598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
Expand Down

0 comments on commit 80ae598

Please sign in to comment.