Skip to content

All jobs in workflow on one particular runner #25311

Answered by BrightRan
rsolovev asked this question in Actions
Discussion options

You must be logged in to vote

@rsolovev,

In the workflow, once a runner is assigned to a job, all the steps in this job run only on this runner, and you are not able to assign another runner to some of the steps.

If you wants to assign special self-hosted runners to different jobs in the workflow, you can add different labels for each self-hosted runner to distinguish them. Then you can assign special self-hosted runner to each job according to the different labels.

To view more details, you can see the docs below:
https://help.github.com/en/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow#using-custom-labels-to-route-jobs

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
6 replies
@ShavaShav
Comment options

@DawidNiezgodka
Comment options

@bhavzie
Comment options

@GeorgiiKrikun
Comment options

@AlexAzartsev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment