From 5ab0abdb2f80b0bfc960abc2cd124a70c100d8b2 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:15:22 -0500 Subject: [PATCH] make pr check requirements easier --- .github/workflows/build-container.yml | 15 +++++++++++++++ .github/workflows/test-iso.yml | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 85e3a62..bd35ade 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -35,3 +35,18 @@ jobs: support: ${{ matrix.support }} signing_key: ${{ secrets.SIGNING_SECRET }} continue-on-error: false + + check: + name: Check build successful + if: ${{ !cancelled() }} + runs-on: ubuntu-latest + needs: + - push-image + steps: + - name: Exit on failure for main + if: ${{ needs.push-image.result == 'failure' || needs.push-image.result == 'skipped' }} + shell: bash + run: exit 1 + - name: Exit + shell: bash + run: exit 0 \ No newline at end of file diff --git a/.github/workflows/test-iso.yml b/.github/workflows/test-iso.yml index 50f75ea..9b818f5 100644 --- a/.github/workflows/test-iso.yml +++ b/.github/workflows/test-iso.yml @@ -51,3 +51,18 @@ jobs: VERSION: ${{ matrix.version }} ACTION_REPO: ${{ github.repository }} ACTION_REF: ${{ github.ref }} + + check: + name: Check build successful + if: ${{ !cancelled() }} + runs-on: ubuntu-latest + needs: + - build-and-push-iso + steps: + - name: Exit on failure for main + if: ${{ needs.build-and-push-iso.result == 'failure' || needs.build-and-push-iso.result == 'skipped' }} + shell: bash + run: exit 1 + - name: Exit + shell: bash + run: exit 0 \ No newline at end of file