-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathactions.tf
More file actions
23 lines (20 loc) · 860 Bytes
/
actions.tf
File metadata and controls
23 lines (20 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# see https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_variable
resource "github_actions_variable" "enable_workflows" {
# see https://developer.hashicorp.com/terraform/language/meta-arguments/for_each
for_each = merge(
module.repositories,
module.terraform_repositories
)
repository = each.key
variable_name = "ENABLE_WORKFLOWS"
value = "true"
}
# set Hugo version as GitHub Organization Variable to allow
# for easier re-use and maintainability across GitHub Actions Workflows
# see https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_variable
resource "github_actions_organization_variable" "versions" {
for_each = var.tool_versions_config
variable_name = each.key
visibility = "all"
value = each.value.version
}