瀏覽代碼

Set autocrlf before checking out repo.

Mario Zechner 4 年之前
父節點
當前提交
c89e01df18
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      .github/workflows/format-check.yml

+ 3 - 2
.github/workflows/format-check.yml

@@ -8,6 +8,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:      
 
+    - run: git config --global core.autocrlf input
+
     - uses: actions/checkout@v1  
 
     - name: Install OS dependencies (needed for act on ubuntu-latest)      
@@ -52,8 +54,7 @@ jobs:
       run: | 
         export CLANGFORMAT=`pwd`/clang/bin/clang-format
         export PATH="$PATH:/root/.dotnet/tools"      
-        ./formatters/format.sh
-        git config --global core.autocrlf input
+        ./formatters/format.sh        
         git diff > format-diff.txt
 
     - name: Archive formatting result