From 8fdf138e5f732b4355c42070814ee6fa7f5552e8 Mon Sep 17 00:00:00 2001 From: "work.nickd@icloud.com" Date: Wed, 14 Oct 2026 09:53:09 -0500 Subject: [PATCH] feat: add actions runner variable --- README.md | 1 + modules/github-repo/actions.tf | 6 ++++++ modules/github-repo/variables.tf | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index cad45ed..100cc37 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Each repo is declared as an instance of the `./modules/github-repo` module (`rep - branch/tag rulesets - collaborators - secrets +- Actions variables, including `ACTIONS_RUNNER` (the `runs-on` label for workflows, set per repo via `actions_runner`, default `ubuntu-26.04`) - webhooks - GitHub App credential distribution diff --git a/modules/github-repo/actions.tf b/modules/github-repo/actions.tf index df0be56..85894d1 100644 --- a/modules/github-repo/actions.tf +++ b/modules/github-repo/actions.tf @@ -12,6 +12,12 @@ resource "github_actions_variable" "this" { value = each.value } +resource "github_actions_variable" "actions_runner" { + repository = github_repository.this.name + variable_name = "ACTIONS_RUNNER" + value = var.actions_runner +} + resource "github_actions_variable" "app_client_id" { for_each = var.apps repository = github_repository.this.name diff --git a/modules/github-repo/variables.tf b/modules/github-repo/variables.tf index 3c48370..db68951 100644 --- a/modules/github-repo/variables.tf +++ b/modules/github-repo/variables.tf @@ -105,6 +105,11 @@ variable "actions_variables" { default = {} } +variable "actions_runner" { + type = string + default = "ubuntu-26.04" +} + variable "apps" { type = map(object({ client_id = string