From a7ac95ad07fc239f3ff675e5ddc3f1ebc93c2e98 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Fri, 10 Jan 2025 10:54:37 +1100 Subject: [PATCH] Refine pre-commit step in CI build workflow --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d3fbaafc3b..aa2aef9f79a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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