From b566bfb0dcdcd86fa9d349875eba15e647c06459 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 23 Aug 2022 17:27:44 +0200 Subject: [PATCH] Uninvent the wheel w/ `re-actors/alls-green` @ GHA --- .github/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f716b70f..13a27556 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -258,12 +258,6 @@ jobs: - pypi-publish steps: - name: Require all successes - shell: python - env: - RESULTS: ${{ toJSON(needs.*.result) }} - run: | - import json - import os - import sys - results = json.loads(os.environ["RESULTS"]) - sys.exit(0 if all(result == "success" for result in results) else 1) + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }}