From 43afc0e64c8adcb65bafd77749b92c34b0892195 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Thu, 1 Aug 2024 14:37:59 +0000 Subject: [PATCH] Update post-build step to check for matrix status --- .github/workflows/check.yml | 8 ++++---- .github/workflows/docs.yml | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 99ec74a772..8ae51aea52 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,11 +15,11 @@ jobs: name: Post-build runs-on: ubuntu-latest needs: build + if: always() steps: - - uses: actions/checkout@v4 - - name: Merge changes from the matrix build - id: merge-changes - uses: ./.github/actions/merge-changes + - name: Check build matrix status + if: ${{ needs.build.result != 'success' }} + run: exit 1 analyse: name: Analyse diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d0e8e702ab..bedcc38f5a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -130,6 +130,18 @@ jobs: name: ${{ matrix.project }} path: projects/${{ matrix.project }}/tech-docs/build + post-build: + name: Post-build + runs-on: ubuntu-latest + needs: + - build-index + - build-projects + if: always() + steps: + - name: Check build matrix status + if: ${{ needs.*.result != 'success' }} + run: exit 1 + deploy: runs-on: ubuntu-latest timeout-minutes: 30