From 5a9737909035103d332fbf86357f87e1e10cb7f4 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 1 Feb 2024 10:28:03 -0800 Subject: [PATCH] Try to make the CI status more robust --- .github/workflows/ci.yaml | 8 ++++++-- .github/workflows/pr.yaml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6d4778a..10a929a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,9 +43,13 @@ jobs: components: rustfmt - run: cargo fmt --all --check - done: + ci-status: name: Complete runs-on: ubuntu-latest needs: [test, no_std, fmt] + if: always() steps: - - run: exit 0 + - if: ${{ success() }} + run: exit 0 + - if: ${{ !success() }} + run: exit 1 diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e51f85d..1dd0cbc 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -28,9 +28,13 @@ jobs: components: rustfmt - run: cargo fmt --all --check - done: + ci-status: name: Complete runs-on: ubuntu-latest needs: [test, fmt] + if: always() steps: - - run: exit 0 + - if: ${{ success() }} + run: exit 0 + - if: ${{ !success() }} + run: exit 1