From 6b933cea12702106c05c02af8fdd17e5f58a3445 Mon Sep 17 00:00:00 2001 From: axunonb Date: Thu, 9 Jan 2025 00:48:33 +0100 Subject: [PATCH] Set Git line endings to autocrlf (#689) Set Git line endings tuo autocrlf Necessary for using C# raw strings --- .github/workflows/coverage.yml | 2 ++ .github/workflows/daily_build.yml | 2 ++ .github/workflows/publish.yml | 4 ++++ .github/workflows/tests.yml | 2 ++ 4 files changed, 10 insertions(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 104c06a2..1fee7cfe 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,6 +21,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history for all tags and branches + - name: Set Git config for line endings + run: git config --global core.autocrlf true - name: Setup .NET uses: actions/setup-dotnet@v4 with: diff --git a/.github/workflows/daily_build.yml b/.github/workflows/daily_build.yml index 1d2b24ea..ad15e933 100644 --- a/.github/workflows/daily_build.yml +++ b/.github/workflows/daily_build.yml @@ -15,6 +15,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history for all tags and branches + - name: Set Git config for line endings + run: git config --global core.autocrlf true - name: Setup .NET uses: actions/setup-dotnet@v4 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index db42487e..d133ba3a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,6 +16,8 @@ jobs: with: fetch-depth: 0 # Fetch all history for all tags and branches ref: main + - name: Set Git config for line endings + run: git config --global core.autocrlf true - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -49,6 +51,8 @@ jobs: with: fetch-depth: 0 # Fetch all history for all tags and branches ref: main + - name: Set Git config for line endings + run: git config --global core.autocrlf true - name: Setup .NET uses: actions/setup-dotnet@v4 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f9bb5b34..d1d3f870 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,6 +20,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history for all tags and branches + - name: Set Git config for line endings + run: git config --global core.autocrlf true - name: Setup .NET uses: actions/setup-dotnet@v4 with: