Move jobs with the wizard
The Runners page's wizard moves a repository's workflow jobs to pols runners and its checkout and Docker build steps to the runner cache, in a pull request you review on GitHub.
The Move jobs wizard on the Runners page changes a repository’s workflows to run on pols runners. It does not change anything by itself: pols opens a pull request, and the jobs move once it is merged on GitHub. Owners and admins of your org use it; the pols.so GitHub App must be connected first.
The steps
- Repository. Search and choose one of the private repositories of your org’s GitHub organizations. Repositories pols runners do not serve (public ones, those of personal accounts, archived ones) are listed with the reason and cannot be chosen.
- Runners. For each job in the workflow files of the repository’s default branch, choose a pols runner or keep its current
runs-on. A job onubuntu-latestorubuntu-24.04is suggestedpols-default, which has no less than GitHub’s standard runner. A job whoseruns-onis a list, a group or an expression, or that runs on Windows, macOS or Arm, cannot be changed by the wizard; change it by hand. - Docker builds. For each workflow file, or all at once, choose whether jobs on pols runners use
PEWEO/pols-docker-builder@v1instead ofdocker/setup-buildx-action, andPEWEO/pols-docker-builder/build@v1instead ofdocker/build-push-action. Both are suggested. - Git checkout. The same for
PEWEO/pols-checkout@v1instead ofactions/checkout. - Pull request. Review the list of
runs-onanduseslines that change, and open the pull request.
The cache actions keep what they build or fetch on the repository’s runner cache, and do what the action they replace does anywhere else, so a workflow that still runs some jobs on GitHub’s runners keeps working.
The pull request
pols opens the pull request from a branch of its own, pols-runners-<time>, made from the head of the default branch, into the default branch; it never pushes to the default branch. The pull request changes only the runs-on and uses lines you chose. The repository’s people review and merge it on GitHub; until then the jobs run as they do now.
Opening it needs the app’s repository permissions Contents, Workflows and Pull requests (read and write), which an owner of the GitHub organization accepts in the installation’s settings. pols uses a token for that repository alone.