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: