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