Skip to content

ci: allow overriding runner labels via organization variables - #847

Merged
susnux merged 1 commit into
masterfrom
ci/runs-on-org-variables
Nov 30, 2026
Merged

susnux merged 1 commit into
masterfrom
ci/runs-on-org-variables

Conversation

@susnux

@susnux susnux commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Mirrors of our repositories in other organizations (e.g. nextcloud-gmbh) have to run on self-hosted runners, which need the self-hosted label. Today they rewrite every runs-on line on each sync, which also sends all ubuntu-latest-low jobs to the big runners.

The workflow templates now read the runner labels from organization (or repository) variables and fall back to the GitHub hosted runners when they are unset:

runs-on: ${{ fromJSON(vars.RUNS_ON_UBUNTU_LATEST_LOW || '"ubuntu-latest-low"') }}
Variable Default when unset Example value for a self-hosted mirror
RUNS_ON_UBUNTU_LATEST ubuntu-latest ["self-hosted", "ubuntu-latest"]
RUNS_ON_UBUNTU_LATEST_LOW ubuntu-latest-low ["self-hosted", "ubuntu-latest-low"]

Nothing changes for the nextcloud organization, as none of these variables are set there. The workflows of this repository itself are not changed.

Same change for server: nextcloud/server#67236

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Assisted by ClaudeCode:claude-opus-5-5

Organizations mirroring Nextcloud repositories (e.g. nextcloud-gmbh) must run on self-hosted runners and currently rewrite every runs-on line when syncing, which also drops the distinction between the default and the low runners.

Read the runner labels from the RUNS_ON_UBUNTU_LATEST and RUNS_ON_UBUNTU_LATEST_LOW variables (JSON encoded label or label list) and fall back to the GitHub hosted runners when they are unset, so nothing changes for this organization.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Nov 30, 2026
@susnux
susnux marked this pull request as ready for review November 30, 2026 18:15
@susnux
susnux merged commit e2a82b8 into master Nov 30, 2026
8 checks passed
@susnux
susnux deleted the ci/runs-on-org-variables branch November 30, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted This PR contains AI-assisted commits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants