From ff83ff087351d7637512476562087009b8ccbdfe Mon Sep 17 00:00:00 2001 From: logikonline Date: Sat, 24 Jan 2026 18:17:37 -0500 Subject: [PATCH] fix(ci): configure git after checkout in build workflow Moves git line endings configuration to run after checkout instead of before. This ensures the config applies to the checked out repository rather than globally, and removes the --global flag accordingly. --- .gitea/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6e40f1ca91..8f8a6d3802 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -284,15 +284,15 @@ jobs: Write-Host "version=$version" "version=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Append - - name: Configure git line endings (Windows) - if: matrix.goos == 'windows' - run: git config --global core.autocrlf false - - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Configure git line endings (Windows) + if: matrix.goos == 'windows' + run: git config core.autocrlf false + - name: Sync vault templates and locales (Unix) if: matrix.goos != 'windows' run: |