diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9a6c3ff8b8f7..029b64bd440e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -211,6 +211,12 @@ jobs: secrets: inherit completed-successfully: + # We force a failure if any of the dependent jobs fail, + # this is a workaround for the issue reported https://github.com/actions/runner/issues/2566 + if: | + always() && (cancelled() || + contains(needs.*.result, 'cancelled') || + contains(needs.*.result, 'failure')) runs-on: ubuntu-latest needs: - build-other @@ -221,4 +227,6 @@ jobs: - test - test-docker-k8s steps: - - run: echo "All required build and test workflows have succeeded!" + - run: | + echo "Some of the required build and test workflows have failed!" + exit 1