瀏覽代碼

Force no git line ending conversion on format workflow (#16176)

Joel Challis 2 年之前
父節點
當前提交
bccf933bc9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .github/workflows/format_push.yml

+ 4 - 0
.github/workflows/format_push.yml

@@ -17,6 +17,10 @@ jobs:
       with:
         fetch-depth: 0
 
+    - name: Disable automatic eol conversion
+      run: |
+        echo "* -text" > .git/info/attributes
+
     - name: Install dependencies
       run: |
         pip3 install -r requirements-dev.txt