From c44ea56df1bddec059f21198d9baa1f132db5ec9 Mon Sep 17 00:00:00 2001 From: Petar Kirov Date: Mon, 4 Mar 2024 00:36:03 +0200 Subject: [PATCH] ci(gh-actions): Only include the build job if the CI matrix is not empty --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f6ce559..e57b4018 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: build: needs: generate-matrix + if: needs.generate-matrix.outputs.matrix != '{}' && needs.generate-matrix.outputs.matrix != '{"include":[]}' strategy: fail-fast: false matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}}