From ada559981adf5b856a4edd02aea8a897b28dfc08 Mon Sep 17 00:00:00 2001 From: Carlos Palhares Date: Tue, 8 Oct 2024 15:33:00 -0300 Subject: [PATCH] Aggregate all matrix execution in one status See https://github.com/orgs/community/discussions/26822 --- .github/workflows/ruby-gem.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ruby-gem.yml b/.github/workflows/ruby-gem.yml index 2ecd719..a40ba97 100644 --- a/.github/workflows/ruby-gem.yml +++ b/.github/workflows/ruby-gem.yml @@ -57,6 +57,20 @@ jobs: gemfile: ${{ matrix.gemfile }} bundler: ${{ matrix.bundler }} + all_builds: + if: ${{ always() }} + runs-on: ubuntu-latest + name: All Builds + needs: [build] + steps: + - run: | + result="${{ needs.build.result }}" + if [[ $result == "success" || $result == "skipped" ]]; then + exit 0 + else + exit 1 + fi + license-compliance: uses: ./.github/workflows/license-compliance.yml with: