From 95d3cd962b8fe0330458936648c164563cf2c2ad Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 15 Jul 2026 00:55:25 -0700 Subject: [PATCH] feat(cursor-review-auto-label): optional runs_on input, mirrors cursor-review.yml Lets a caller route the auto-label job to a self-hosted runner. Default '"ubuntu-latest"' preserves GitHub-hosted behavior for every existing caller (all callers pin by SHA regardless). Co-Authored-By: Claude Fable 5 --- .github/workflows/cursor-review-auto-label.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cursor-review-auto-label.yml b/.github/workflows/cursor-review-auto-label.yml index 807af11..65d87ab 100644 --- a/.github/workflows/cursor-review-auto-label.yml +++ b/.github/workflows/cursor-review-auto-label.yml @@ -56,6 +56,19 @@ on: type: string required: false default: skip-cursor-review + runs_on: + description: >- + JSON-encoded runs-on value for this workflow's single job. Default + '"ubuntu-latest"' (a JSON string) preserves existing GitHub-hosted + behavior for all callers. Override with a JSON array to target a + self-hosted runner, e.g. '["self-hosted", "macOS"]' — useful for + repos that would otherwise burn GitHub-hosted minutes (private repos + over quota). Parsed with fromJSON, so the value MUST be valid JSON. + Matches the same input on cursor-review.yml so a caller can pin both + workflows to one runner. + type: string + required: false + default: '"ubuntu-latest"' secrets: CLOUD_CODE_BOT_PRIVATE_KEY: description: >- @@ -70,7 +83,7 @@ permissions: jobs: auto-label: name: Auto-apply review label - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(inputs.runs_on) }} permissions: contents: read steps: