From a28c8f865d1ac8a020980100e7e38655b828049a Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 8 Feb 2025 11:29:37 +0200 Subject: [PATCH] ci: use alls-green so we can have a single required check --- .github/workflows/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c68bfed0..854b3ab5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -128,3 +128,17 @@ jobs: - name: pypy3-dj42-postgres python: 'pypy3.9' allow_failure: false + + check: # This job does nothing and is only used for the branch protection + if: always() + + needs: + - test + + runs-on: ubuntu-latest + + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@223e4bb7a751b91f43eda76992bcfbf23b8b0302 + with: + jobs: ${{ toJSON(needs) }}