How to cancel a run for a non-existent runs-on member in github workflows?

13 Views Asked by At
name: Test

on:
  push:
    branches: 
      - action/test

jobs:
  super_test:
    strategy:
      matrix:
        os: [ubuntu22.04]
        arch: [X64, X86, ARM64]
    runs-on: [self-hosted, "${{ matrix.os }}", "${{ matrix.arch }}"]
    name: "With my ${{ matrix.os }}:${{ matrix.arch }}"
    steps:
      - uses: actions/[email protected]
      - name: Print Something
        run: git branch

I have a self-hosted runner with the label 'ubuntu22.04,X64' There are no other runners available. In this case, I would like the jobs for the non-existent runner to be canceled. How can I achieve this?

0

There are 0 best solutions below