From e992eccec78d5c9fd7d5bbe73f369d0653edf385 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 18 Sep 2020 21:20:49 +0200 Subject: [PATCH] Only run CI steps if Homebrew setup is successful. (#89475) --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea1540d225..0c9af0ded6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,11 +87,12 @@ jobs: restore-keys: ${{ runner.os }}-rubygems- - name: Install Homebrew Gems + id: gems run: brew install-bundler-gems - name: Run brew cask style run: brew cask style - if: success() && !matrix.cask + if: always() && steps.gems.outcome == 'success' && !matrix.cask - name: Run brew cask audit ${{ matrix.cask.token }} run: | @@ -102,7 +103,7 @@ jobs: brew cask audit ${{ join(matrix.audit_args, ' ') }} '${{ matrix.cask.path }}' timeout-minutes: 30 - if: always() && !matrix.skip_audit + if: always() && steps.gems.outcome == 'success' && !matrix.skip_audit - name: Gather cask information id: info @@ -141,7 +142,7 @@ jobs: puts "::set-output name=formula_conflicts::#{JSON.generate(formula_conflicts)}" puts "::set-output name=formula_dependencies::#{JSON.generate(formula_dependencies)}" EOF - if: always() && matrix.cask + if: always() && steps.gems.outcome == 'success' && matrix.cask - name: Uninstall conflicting formulae run: |