diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1d39f14b8..c4aa954cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -109,9 +109,16 @@ jobs: components: rustfmt - run: cargo fmt --all --check - done: + ci-success: name: Complete runs-on: ubuntu-latest needs: [check, test, demo, i686, wasm, wasi, fmt] steps: - run: exit 0 + ci-failed: + name: Complete + runs-on: ubuntu-latest + needs: [check, test, demo, i686, wasm, wasi, fmt] + if: failure() + steps: + - run: exit 1 diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b51c7aac1..67e7941f6 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -37,9 +37,16 @@ jobs: components: rustfmt - run: cargo fmt --all --check - done: + ci-success: name: Complete runs-on: ubuntu-latest needs: [check, test, fmt] steps: - run: exit 0 + ci-failed: + name: Complete + runs-on: ubuntu-latest + needs: [check, test, fmt] + if: failure() + steps: + - run: exit 1