From 0e97070b3fc68505e15110b5471e26bfec0fdeb7 Mon Sep 17 00:00:00 2001 From: Devaraj Ranganna Date: Tue, 21 May 2024 13:51:17 +0000 Subject: [PATCH] ci: Update git config for CI jobs Set the git `core.autocrlf` to `input` so that, files with `CRLF` line-endings can be patched correctly. Signed-off-by: Devaraj Ranganna --- .github/workflows/build.yaml | 1 + .gitlab-ci.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2e2cf3f..65f999d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -66,6 +66,7 @@ jobs: ./tools/ci/generate_credentials.sh -f -p applications/${APP_UNDERSCORED}/configs/aws_configs git config --global user.email "ci@example.com" git config --global user.name "ci" + git config --global core.autocrlf input - name: Build ${{ matrix.application }} application shell: bash run: | diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aad4680..f5a2ce8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,6 +54,7 @@ workflow: - ./tools/ci/generate_credentials.sh -f -p applications/${APP_UNDERSCORED}/configs/aws_configs - git config --global user.email "ci@example.com" - git config --global user.name "ci" + - git config --global core.autocrlf input - | ./tools/scripts/build.sh ${APP} \ --target $TARGET \