Skip to content

Commit 5518b59

Browse files
committed
Make the CI status more robust
1 parent 04d40a6 commit 5518b59

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,16 @@ jobs:
3838
components: rustfmt
3939
- run: cargo fmt --all --check
4040

41-
done:
41+
ci-success:
4242
name: Complete
4343
runs-on: ubuntu-latest
4444
needs: [test, no_std, fmt]
4545
steps:
4646
- run: exit 0
47+
ci-failed:
48+
name: Complete
49+
runs-on: ubuntu-latest
50+
needs: [test, no_std, fmt]
51+
if: failure()
52+
steps:
53+
- run: exit 1

.github/workflows/pr.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@ jobs:
2828
components: rustfmt
2929
- run: cargo fmt --all --check
3030

31-
done:
31+
ci-success:
3232
name: Complete
3333
runs-on: ubuntu-latest
3434
needs: [test, fmt]
3535
steps:
3636
- run: exit 0
37+
ci-failed:
38+
name: Complete
39+
runs-on: ubuntu-latest
40+
needs: [test, fmt]
41+
if: failure()
42+
steps:
43+
- run: exit 1

0 commit comments

Comments
 (0)