Skip to content

Commit

Permalink
Try to make the CI status more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 1, 2024
1 parent ac0b695 commit 5a97379
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 6 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a97379

Please sign in to comment.