Move your workflows

Move jobs to CI Router one at a time or a whole repository at once. Move any of them back.

#Start with one job

Pick a build or test job that runs on ubuntu-latest. Change its runs-on line. Keep the job's name: branch protection matches required checks by name.

.github/workflows/ci.yml
jobs:  test:-   runs-on: ubuntu-latest+   runs-on: ci-router    steps:      - uses: actions/checkout@v4      - uses: actions/setup-node@v4        with:          node-version: 22      - run: npm ci      - run: npm test

Runners start from a small image, not GitHub's full image. Add a setup step for each tool the job uses, like actions/setup-node above. Installed tools lists what each image has.

Jobs on ubuntu-24.04-arm move with runs-on: [ci-router, arm64], on providers that offer arm64.

#Let your coding agent do it

On the dashboard, Copy prompt for your coding agent copies the text below. Paste it into a coding agent in the repository. It reads every workflow and moves the jobs that can move. It opens a pull request that lists the jobs it left, with a reason for each.

Prompt for your coding agent
Move this repository's GitHub Actions jobs to CI Router.

CI Router runs GitHub Actions jobs on Linux machines, x64 by default and arm64 on request on providers that offer it. A job opts in with one line, `runs-on: ci-router`. Steps, secrets, logs and checks stay on GitHub as they are. Jobs only run on CI Router in repositories where the CI Router GitHub App is installed.

1. Read every workflow in .github/workflows/.
2. Change `runs-on` to `ci-router` on jobs that run on `ubuntu-latest`, `ubuntu-24.04` or `ubuntu-22.04`, and to `[ci-router, arm64]` on jobs that run on `ubuntu-24.04-arm`. When `runs-on` comes from a matrix (`${{ matrix.os }}`), change only the Ubuntu entries. Machines run a recent Linux (Ubuntu 24.04 on most): a job that depends on Ubuntu 22.04 stays where it is.
3. Leave these jobs unchanged:
   - jobs on macOS, Windows, GPU or self-hosted runners;
   - jobs that deploy, publish, release or sign anything (production, a container registry, a package index, an app store, or a job with a protected `environment:`). Never move one of these blindly: move it only if I ask, after the build and test jobs have passed on CI Router;
   - jobs that call a reusable workflow (`uses:` at the job level): the called workflow decides.
4. Write `runs-on: ci-router`, plus only these optional tags, at most one of each kind: `arm64` for an arm job (no tag means x64); a size (`1cpu`, `2cpu`, `4cpu`, `8cpu` or `16cpu`) only when the job is known to need a fixed size, for example a big build; `cheap` or `fast` only when I ask for cheaper or faster runs. Without a size tag the router picks the size; without `cheap` or `fast` it balances cost and speed. Use no other label: GitHub's runner labels and Docker labels are refused. CI Router reads what a job needs (`services:`, `container:`, Docker steps and commands) from the workflow and picks a machine that has it.
5. Machines start from a minimal Linux image, not GitHub's full image. Only bash, curl and tar are always there. If a job relies on any other preinstalled tool (git, Python, Node.js, Go, Java, browsers for Playwright or Selenium, gh, the aws CLI, kubectl, terraform...), add its setup step (`actions/setup-python`, `actions/setup-node`, `actions/setup-go`, `actions/setup-java`, `npx playwright install --with-deps`, `sudo apt-get install -y git`...). What each machine has: https://ci-router.com/docs/runners/tools
6. Make the change on a new branch and open a pull request. Never push to the default branch. In the description, list the jobs you moved and the jobs you left alone with the reason, and say how to roll a job back: set its `runs-on` back to the value it had before (for example `ubuntu-latest`, or `ubuntu-24.04-arm` for an arm job).
7. When the pull request's checks have run, check the moved jobs. A job that fails for a missing tool gets its setup step. A job that needs something CI Router does not offer goes back to the `runs-on` value it had before.

Docs:
- Quickstart: https://ci-router.com/docs/quickstart
- What the runners support and what is installed: https://ci-router.com/docs/runners
- Keeping a job on GitHub-hosted runners: https://ci-router.com/docs/runners#github-hosted

The prompt adds few tags: arm64 for arm jobs, a size for a job known to need one, and cheap or fast only when you ask. Review the pull request like any other change.

#Jobs to leave where they are

  • Jobs on macOS, Windows, GPU or self-hosted runners.
  • Jobs that depend on Ubuntu 22.04.
  • Jobs that deploy, publish, release or sign. Move them after the build and test jobs pass on CI Router.
  • Jobs that call a reusable workflow with uses:. The called workflow sets its own runners.
  • Jobs that need something no allowed machine offers, such as KVM. See Mix CI Router and GitHub-hosted jobs.

#Check the moved jobs

Push the change and watch the first runs. If a tool is missing, add its setup step. If a job does not start, the dashboard's Runs page shows why. Troubleshooting lists the usual causes and log lines.

#Roll back

Set the job's runs-on back to the value it had, such as ubuntu-latest, and push. The next run uses your previous runner. Nothing else changes. To stop CI Router in a repository, remove it from the GitHub App's repositories. See Change the repositories.

Move your workflows | CI Router docs