Skip to content

Commit

Permalink
Refine pre-commit step in CI build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Jan 9, 2025
1 parent 203feda commit a7ac95a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ jobs:
body: 'Thank you for your contribution! 🙏\n\nThe pre-commit checks failed, but this is easy to fix. You\'ll need to run:\n\n```bash\nmake pre-commit\n# or\npre-commit run --all-files\n```\n\nThis will automatically fix most formatting issues. Just commit any changes and push again.\n\nSee our [CONTRIBUTING.md](https://github.com/nautechsystems/nautilus_trader/blob/develop/CONTRIBUTING.md) guide for more details.'
})
- name: Fail job if pre-commit fails
if: failure() # Explicitly fail the job if pre-commit failed
run: |
echo "Pre-commit checks failed, exiting"
exit 1
build-linux:
strategy:
fail-fast: false
Expand Down

0 comments on commit a7ac95a

Please sign in to comment.