diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d18ec2b1..72443b250 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,15 +123,8 @@ jobs: if: always() runs-on: ubuntu-latest steps: - - run: | - if [ "${{ needs.build.result }}" != "success" ]; then - echo "Build failed or was cancelled" - exit 1 - fi - if [ "${{ needs.integration.result }}" != "success" ] && [ "${{ needs.integration.result }}" != "skipped" ]; then - echo "Integration tests failed or were cancelled" - exit 1 - fi + - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: exit 1 publish: needs: [build, integration]