From 3e7e4fc2596b4a7595a8bc4ec7d2be07527ec9cc Mon Sep 17 00:00:00 2001 From: jneira Date: Fri, 21 Jan 2022 08:12:18 +0100 Subject: [PATCH] runner not allowed out of steps --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0801fd462fd..d2900104f25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,10 +11,10 @@ on: jobs: build: runs-on: ${{ matrix.os }} - container: ${{ (runner.os == 'Linux' && 'alpine:3.12') || '' }} + container: ${{ (startsWith(matrix.os, 'ubuntu' && 'alpine:3.12') || '' }} defaults: run: - shell: ${{ (runner.os == 'Windows' && 'bash') || 'sh' }} + shell: ${{ (startsWith(matrix.os,'windows') && 'bash') || 'sh' }} strategy: fail-fast: false matrix: