2
0

fix(ci): configure git after checkout in build workflow
All checks were successful
Build and Release / Create Release (push) Has been skipped
Build and Release / Lint (push) Successful in 3m56s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been skipped
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been skipped
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been skipped
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been skipped
Build and Release / Build Binary (linux/arm64) (push) Has been skipped
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 4m3s
Build and Release / Unit Tests (push) Successful in 4m33s

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.
This commit is contained in:
2026-01-24 18:17:37 -05:00
parent 41e0b5a35a
commit ff83ff0873

View File

@@ -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: |