Skip to content

Commit

Permalink
Update format check.
Browse files Browse the repository at this point in the history
  • Loading branch information
marianabuhazi committed May 7, 2024
1 parent c7a2317 commit 62480a4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/regression-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 62480a4

Please sign in to comment.