From 7d38a4fd62623011059d0640e9c10b92ed2d03c5 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Fri, 18 Oct 2024 14:25:20 +0200 Subject: [PATCH] Update pr-validate.yaml Signed-off-by: Kjeld Schouten --- .github/workflows/pr-validate.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-validate.yaml b/.github/workflows/pr-validate.yaml index 25c80537e90..3c8756216ac 100644 --- a/.github/workflows/pr-validate.yaml +++ b/.github/workflows/pr-validate.yaml @@ -76,6 +76,9 @@ jobs: echo "PR title: ${{ github.event.pull_request.title }}" finished: + name: Finished PR Tests + runs-on: ubuntu-latest + if: always() needs: - pr-changes - containers-build @@ -83,12 +86,20 @@ jobs: - charts-test - website-and-docs - print_head_msg - name: Finished PR Tests - runs-on: ubuntu-latest steps: - - name: Finisher + - name: Check Results run: | - echo "DONE" + if [[ "${{ needs.pr-changes.result }}" != "success" || \ + "${{ needs.containers-build.result }}" != "success" || \ + "${{ needs.charts-lint.result }}" != "success" || \ + "${{ needs.charts-test.result }}" != "success" || \ + "${{ needs.website-and-docs.result }}" != "success" || \ + "${{ needs.print_head_msg.result }}" != "success" ]]; then + echo "One or more jobs failed!" + exit 1 + else + echo "All jobs succeeded!" + fi automerge-and-approve: needs: