Skip to content

ci(workflows): add configurable runner input to reusable workflows - #6

Merged
benbenbang merged 1 commit into
mainfrom
refactor/runner
Nov 6, 2026
Merged

benbenbang merged 1 commit into
mainfrom
refactor/runner

Conversation

@benbenbang

Copy link
Copy Markdown
Member

This change introduces a new runner input to the pre-commit and prek
reusable workflows, allowing callers to specify which runner executes the
jobs. Previously, both workflows were hardcoded to ubuntu-latest.

Workflow updates:

  • Added a runner input parameter to both .github/workflows/pre-commit.yml
    and .github/workflows/prek.yml, defaulting to ubuntu-latest to preserve
    existing behavior.
  • Updated the runs-on field in each job to reference ${{ inputs.runner }},
    enabling callers to target custom or self-hosted runners.

This change introduces a new `runner` input to the `pre-commit` and `prek`
reusable workflows, allowing callers to specify which runner executes the
jobs. Previously, both workflows were hardcoded to `ubuntu-latest`.

**Workflow updates:**
* Added a `runner` input parameter to both `.github/workflows/pre-commit.yml`
  and `.github/workflows/prek.yml`, defaulting to `ubuntu-latest` to preserve
  existing behavior.
* Updated the `runs-on` field in each job to reference `${{ inputs.runner }}`,
  enabling callers to target custom or self-hosted runners.
@benbenbang
benbenbang enabled auto-merge (squash) November 6, 2026 17:14
@github-actions github-actions Bot added enhancement New feature or request triaged labels Nov 6, 2026
@benbenbang
benbenbang merged commit 8907c93 into main Nov 6, 2026
5 checks passed
@benbenbang
benbenbang deleted the refactor/runner branch November 6, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant