From 4ac3b8f265ebf9ff6f1bd29203cc5d02cb9fbd54 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 26 May 2025 14:56:40 -0400 Subject: [PATCH] Use latest CI workflow from other servo repos. Signed-off-by: Josh Matthews --- .github/workflows/rust.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bbed9dd7..6056a318 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -62,14 +62,15 @@ jobs: build_result: name: Result runs-on: ubuntu-latest + if: always() needs: - "build" - "semver" - "typos" steps: - - name: Mark the job as successful + - name: Success run: exit 0 - if: success() - - name: Mark the job as unsuccessful + if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} + - name: Failure run: exit 1 - if: "!success()" + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')