diff options
author | Saturneric <[email protected]> | 2022-02-13 06:50:46 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-02-13 06:50:46 +0000 |
commit | eb4f60f31ca2d5d8cd953729fe01b623efa4e865 (patch) | |
tree | d519b17bcd512104ec404174bbf5c3d704e51678 | |
parent | <fix>(ci): Add mingw-w64-x86_64-gpgme package under Windows (diff) | |
download | GpgFrontend-eb4f60f31ca2d5d8cd953729fe01b623efa4e865.tar.gz GpgFrontend-eb4f60f31ca2d5d8cd953729fe01b623efa4e865.zip |
<fix>(ci): Set Git's file line endings to LF
-rw-r--r-- | .github/workflows/debug.yml | 6 | ||||
-rw-r--r-- | .github/workflows/release.yml | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 97dcf4e2..1b6b2f53 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -27,6 +27,12 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Set git to use LF(Windows) or CRLF(MacOS) line endings + run: | + git config --global core.autocrlf false + git config --global core.eol lf + if: matrix.os == 'windows-2019' || matrix.os == 'macos-10.15' + - uses: actions/checkout@v2 with: submodules: recursive diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a44c0c9f..9b0f00dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,11 @@ jobs: os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2019' ] runs-on: ${{ matrix.os }} steps: + - name: Set git to use LF(Windows) or CRLF(MacOS) line endings + run: | + git config --global core.autocrlf false + git config --global core.eol lf + if: matrix.os == 'windows-2019' || matrix.os == 'macos-10.15' - uses: actions/checkout@v2 with: |