Repository navigation
ci: allow overriding runner labels via organization variables - #847
Merged
Merged
Conversation
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>
2 of 8 tasks
nickvergessen
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors of our repositories in other organizations (e.g. nextcloud-gmbh) have to run on self-hosted runners, which need the
self-hostedlabel. Today they rewrite everyruns-online on each sync, which also sends allubuntu-latest-lowjobs 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_UBUNTU_LATESTubuntu-latest["self-hosted", "ubuntu-latest"]RUNS_ON_UBUNTU_LATEST_LOWubuntu-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)
Assisted by ClaudeCode:claude-opus-5-5