Skip to content

Commit a7ac95a

Browse files
committed
Refine pre-commit step in CI build workflow
1 parent 203feda commit a7ac95a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

+6
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ jobs:
9494
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.'
9595
})
9696
97+
- name: Fail job if pre-commit fails
98+
if: failure() # Explicitly fail the job if pre-commit failed
99+
run: |
100+
echo "Pre-commit checks failed, exiting"
101+
exit 1
102+
97103
build-linux:
98104
strategy:
99105
fail-fast: false

0 commit comments

Comments
 (0)