Repository navigation
ci: allow overriding runner labels via organization variables - #67236
Merged
Merged
Conversation
Mirrors of this repository (e.g. in the nextcloud-gmbh organization) must run on self-hosted runners and so far rewrite every `runs-on` line on sync. That rewrite collapses the low and assets runners onto the default one and the rewritten workflows already leaked back into this repository once. Read the runner labels from the RUNS_ON_UBUNTU_LATEST, RUNS_ON_UBUNTU_LATEST_LOW and RUNS_ON_UBUNTU_LATEST_ASSETS 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>
1 task done
susnux
marked this pull request as ready for review
November 30, 2026 18:06
susnux
requested review from
Altahrim and
leftybournes
and removed request for
a team
November 30, 2026 18:06
CarlSchwan
approved these changes
Nov 30, 2026
artonge
approved these changes
Nov 30, 2026
DerDreschner
approved these changes
Nov 30, 2026
Contributor
|
/backport to stable35 |
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
Our mirror in the nextcloud-gmbh organization has to run on self-hosted runners (
["self-hosted", "ubuntu-latest"]/["self-hosted", "ubuntu-latest-low"]). So far its sync job rewrites everyruns-online and commits that on top of each branch. That loses the low runners, and the rewrite already leaked back into this repository once (fixed by #67222).The workflows 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-latestRUNS_ON_UBUNTU_LATEST_LOWubuntu-latest-lowRUNS_ON_UBUNTU_LATEST_ASSETSubuntu-latest-assetsNone of these are set in the nextcloud organization, so nothing changes here. The templated workflows get the same change in nextcloud/.github#847, so the next template sync keeps it.
TODO
RUNS_ON_*variables in the nextcloud-gmbh organization and stop rewriting the plain labels in its sync jobChecklist
3. to review, feature component)stable32)AI (if applicable)
Assisted by ClaudeCode:claude-opus-5-5