You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/buildAndTest.yml
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,7 @@ jobs:
15
15
- name: Tool restore
16
16
run: dotnet tool restore
17
17
- name: Format Check
18
-
run: dotnet fantomas . --check
19
-
- name: log format failure
20
-
if: failure()
21
-
run: echo "The code was not formatted, run 'dotnet fantomas .' to format all code."
18
+
run: dotnet fantomas . --check || { if [ $? -eq 99 ]; then echo "The code was not formatted, run 'dotnet fantomas .' to format all code."; exit 1; fi; }
0 commit comments