diff --git a/modules/common_repository/main.tf b/modules/common_repository/main.tf index f709a9a..9281f81 100644 --- a/modules/common_repository/main.tf +++ b/modules/common_repository/main.tf @@ -1,5 +1,6 @@ resource "github_repository" "repo" { name = var.name + archived = var.archived visibility = var.visibility description = var.description auto_init = true diff --git a/modules/common_repository/variables.tf b/modules/common_repository/variables.tf index 9507269..76d1dd1 100644 --- a/modules/common_repository/variables.tf +++ b/modules/common_repository/variables.tf @@ -1,3 +1,9 @@ +variable "archived" { + description = "Whether the repository is archived" + type = bool + default = false +} + variable "name" { description = "The name of the repository" type = string