Skip to content

Commit 9b4acd7

Browse files
authored
Merge pull request #59 from cuviper/ci-merge
Try to make the CI status more robust
2 parents ac0b695 + 5a97379 commit 9b4acd7

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Diff for: .github/workflows/ci.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ jobs:
4343
components: rustfmt
4444
- run: cargo fmt --all --check
4545

46-
done:
46+
ci-status:
4747
name: Complete
4848
runs-on: ubuntu-latest
4949
needs: [test, no_std, fmt]
50+
if: always()
5051
steps:
51-
- run: exit 0
52+
- if: ${{ success() }}
53+
run: exit 0
54+
- if: ${{ !success() }}
55+
run: exit 1

Diff for: .github/workflows/pr.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ jobs:
2828
components: rustfmt
2929
- run: cargo fmt --all --check
3030

31-
done:
31+
ci-status:
3232
name: Complete
3333
runs-on: ubuntu-latest
3434
needs: [test, fmt]
35+
if: always()
3536
steps:
36-
- run: exit 0
37+
- if: ${{ success() }}
38+
run: exit 0
39+
- if: ${{ !success() }}
40+
run: exit 1

0 commit comments

Comments
 (0)