From 320699913267056244f6b17492ba3667db43794d Mon Sep 17 00:00:00 2001 From: Andrew Krieger Date: Fri, 4 Feb 2022 09:56:14 -0800 Subject: [PATCH] Don't fail-fast on master builds for the general matrix. --- .github/workflows/matrix.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 80d01a783de0d..acbcf0e7d1104 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -61,16 +61,19 @@ jobs: continue-on-error: true runs-on: ubuntu-latest outputs: + fail_fast: ${{ steps.matrix_vars.outputs.fail_fast }} skip_tests: ${{ steps.matrix_vars.outputs.skip_tests }} max_parallel: ${{ steps.matrix_vars.outputs.max_parallel }} steps: - id: matrix_vars run: | + echo "::set-output name=fail_fast::$([ "$GITHUB_REF_NAME" = "master" ] && echo false || echo true)" echo "::set-output name=skip_tests::$([ "$GITHUB_REF_NAME" = "master" ] && echo true || echo false)" echo "::set-output name=max_parallel::$([ "$GITHUB_REF_NAME" = "master" ] && echo 20 || echo 1)" varied_builds: needs: [ skip-duplicates-code, skip-duplicates-data, matrix-variables ] strategy: + fail-fast: ${{ fromJSON(needs.matrix-variables.outputs.fail_fast) }} max-parallel: ${{ fromJSON(needs.matrix-variables.outputs.max_parallel) }} matrix: include: