diff --git a/.github/workflows/regression-test.yaml b/.github/workflows/regression-test.yaml index 795cec11d8..4f36810338 100644 --- a/.github/workflows/regression-test.yaml +++ b/.github/workflows/regression-test.yaml @@ -58,4 +58,15 @@ jobs: - name: Run code formatting check run: | pwd + cd /utils/scripts/actions-pipeline/code-format/ + pwd + chmod +x format_modified.sh + if [ -n "$(git rev-parse --show-toplevel 2>/dev/null)" ]; then + if ! ./format_modified.sh -g -ca; then + echo "Code format check failed. Please fix the formatting issues by running the following script: /utils/scripts/format_modified.sh" + exit 1 + fi + else + echo "Not in a Git repository. Skipping code formatting check." + fi