From 2b4c7ebc617583af9e550863a019e1559f14cc54 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 16 Jan 2026 12:14:50 +0100 Subject: [PATCH] ci: add alls-green action for single required check (#1882) --- .github/workflows/main-checks.yml | 14 ------------- .github/workflows/main.yml | 24 +++++++++++++++++++++++ .github/workflows/pull-request-checks.yml | 8 -------- 3 files changed, 24 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/main-checks.yml create mode 100644 .github/workflows/main.yml delete mode 100644 .github/workflows/pull-request-checks.yml diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main-checks.yml deleted file mode 100644 index e2b2a97a..00000000 --- a/.github/workflows/main-checks.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Main branch checks - -on: - push: - branches: - - main - - "v*.*.*" - - "v1.x" - tags: - - "v*.*.*" - -jobs: - checks: - uses: ./.github/workflows/shared.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..d34e438f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: ["main", "v1.x"] + tags: ["v*.*.*"] + pull_request: + branches: ["main", "v1.x"] + +permissions: + contents: read + +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/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml deleted file mode 100644 index a7e7a8bf..00000000 --- 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