From b05b2c8c8e6036330963b0ec806c816babe2baca Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sun, 6 Oct 2024 23:47:42 +0100 Subject: [PATCH] CI: Add re-actors/alls-green GitHub Actions job This will allow a single job to be required in the GitHub branch protection web UI; regardless of which jobs are added to or removed from the matrix of platform specific, Ansible specific jobs. --- .github/workflows/tests.yml | 12 ++++++++++++ docs/changelog.rst | 2 ++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4520c3cf..2c819e7d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -324,3 +324,15 @@ jobs: fi "$PYTHON" -m tox -e "${{ matrix.tox_env }}" + + # https://github.com/marketplace/actions/alls-green + check: + if: always() + needs: + - linux + - macos + runs-on: ubuntu-latest + steps: + - uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} diff --git a/docs/changelog.rst b/docs/changelog.rst index 5d0d3ead..120ff962 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -25,6 +25,8 @@ Unreleased connection variable, and templated SSH connection password. * :gh:issue:`1136` tests: Improve Ansible fail_msg formatting. * :gh:issue:`1137` tests: Ignore inventory files of inactive tests & benchmarks +* :gh:issue:`1138` CI: Add re-actors/alls-green GitHub Actions job to simplify + branch protections configuration. v0.3.11 (2024-10-30)