From a4e35f537f3ba2e463db7d16048dafc3718ba5d5 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 16 Jan 2026 11:17:34 +0100 Subject: [PATCH 1/6] ci: add alls-green action for single required check Add a 'check' job that aggregates all CI job results using the alls-green action. This enables configuring a single required status check in GitHub branch protection settings. --- .github/workflows/shared.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/shared.yml b/.github/workflows/shared.yml index 3ace33a09..76caa6410 100644 --- a/.github/workflows/shared.yml +++ b/.github/workflows/shared.yml @@ -77,3 +77,12 @@ jobs: - name: Check README snippets are up to date run: uv run --frozen scripts/update_readme_snippets.py --check + + check: + if: always() + needs: [pre-commit, test, readme-snippets] + runs-on: ubuntu-latest + steps: + - uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 + with: + jobs: ${{ toJSON(needs) }} From 6570d7109dc2af383f6089e9f2e0a0691ca2d01f Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 16 Jan 2026 11:22:59 +0100 Subject: [PATCH 2/6] single job --- .github/workflows/main-checks.yml | 9 +++++++++ .github/workflows/shared.yml | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main-checks.yml index e2b2a97a1..b74d9c979 100644 --- a/.github/workflows/main-checks.yml +++ b/.github/workflows/main-checks.yml @@ -12,3 +12,12 @@ on: jobs: checks: uses: ./.github/workflows/shared.yml + + all-green: + if: always() + needs: [checks] + runs-on: ubuntu-latest + steps: + - uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 + with: + jobs: ${{ toJSON(needs) }} diff --git a/.github/workflows/shared.yml b/.github/workflows/shared.yml index 76caa6410..3ace33a09 100644 --- a/.github/workflows/shared.yml +++ b/.github/workflows/shared.yml @@ -77,12 +77,3 @@ jobs: - name: Check README snippets are up to date run: uv run --frozen scripts/update_readme_snippets.py --check - - check: - if: always() - needs: [pre-commit, test, readme-snippets] - runs-on: ubuntu-latest - steps: - - uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 - with: - jobs: ${{ toJSON(needs) }} From 09f652a8d208f74e14f33148e78ebf4d06452d28 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 16 Jan 2026 11:30:44 +0100 Subject: [PATCH 3/6] ci: add alls-green action and consolidate workflows - Merge pull-request-checks.yml and main-checks.yml into main.yml - Add 'all-green' job using alls-green to aggregate all CI results - Enables single required status check: 'all-green' --- .github/workflows/{main-checks.yml => main.yml} | 6 +++++- .github/workflows/pull-request-checks.yml | 8 -------- 2 files changed, 5 insertions(+), 9 deletions(-) rename .github/workflows/{main-checks.yml => main.yml} (87%) delete mode 100644 .github/workflows/pull-request-checks.yml diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main.yml similarity index 87% rename from .github/workflows/main-checks.yml rename to .github/workflows/main.yml index b74d9c979..37f6eb923 100644 --- a/.github/workflows/main-checks.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Main branch checks +name: CI on: push: @@ -8,6 +8,10 @@ on: - "v1.x" tags: - "v*.*.*" + pull_request: + +permissions: + contents: read jobs: checks: diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml deleted file mode 100644 index a7e7a8bf1..000000000 --- a/.github/workflows/pull-request-checks.yml +++ /dev/null @@ -1,8 +0,0 @@ -name: Pull request checks - -on: - pull_request: - -jobs: - checks: - uses: ./.github/workflows/shared.yml From d30472ab36c1e6f8ef208e3b413e7bf83fd55d5e Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 16 Jan 2026 11:41:42 +0100 Subject: [PATCH 4/6] run only against main --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37f6eb923..88f8ec4db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,7 @@ on: tags: - "v*.*.*" pull_request: + branches: ["main"] permissions: contents: read From a1c86b8d91178d1ede0087dfd5a975098d5d1769 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 16 Jan 2026 11:45:19 +0100 Subject: [PATCH 5/6] fix --- .github/workflows/main.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 88f8ec4db..61afd337b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,14 +2,10 @@ name: CI on: push: - branches: - - main - - "v*.*.*" - - "v1.x" - tags: - - "v*.*.*" + branches: ["main", "v1.x"] + tags: ["v*.*.*"] pull_request: - branches: ["main"] + branches: ["main", "v*.*.*", "v1.x"] permissions: contents: read From ee8083bbac59a2e59419ab673544cab79ff9cefb Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 16 Jan 2026 11:48:15 +0100 Subject: [PATCH 6/6] Apply suggestion from @Kludex --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61afd337b..d34e438fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ on: branches: ["main", "v1.x"] tags: ["v*.*.*"] pull_request: - branches: ["main", "v*.*.*", "v1.x"] + branches: ["main", "v1.x"] permissions: contents: read