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