Skip to content

Commit a7fb613

Browse files
author
Petr Sramek
committed
git setup per os type
1 parent a9b54e7 commit a7fb613

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/format-cs-files.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@ jobs:
4343
git checkout ${{ github.head_ref || github.ref }}
4444
dotnet format whitespace --verbosity diagnostic
4545
dotnet format style --verbosity diagnostic
46-
dotnet format analyzers --diagnostics IDE0073 --verbosity diagnostic
46+
dotnet format analyzers --diagnostics IDE0005 IDE0073 --verbosity diagnostic
4747
working-directory: ${{ github.workspace }}
48-
# - if: runner.os == 'Windows'
49-
# run: |
50-
# git config --global core.autocrlf false
51-
# git config --global core.eol lf
48+
- if: runner.os == 'Windows'
49+
run: |
50+
git config --global core.autocrlf false
51+
git config --global core.eol lf
52+
- if: runner.os != 'Windows'
53+
run: |
54+
git config --global core.autocrlf true
55+
git config --global core.eol lf
5256
- name: Push changes to ${{ github.head_ref || github.ref }}
5357
run: |
5458
git add .

0 commit comments

Comments
 (0)