Use one of two runners

56 views Asked by At

I have two self-hosted runners, and I would like to use one of them for running E2E tests depending on their availability:

  • If runner-1 is available, the job is executed on it.
  • If runner-1 is busy, the job is run on runner-2.

How can I achieve this? I tried to set it up this way, but GitHub keeps waiting indefinitely for an available runner:

Waiting for a runner to pick up this job...

  e2e-tests:
    runs-on: [self-hosted, actions-runner-1, actions-runner-2]
0

There are 0 answers