Skip to content

Commit 7048ba5

Browse files
committed
fix(github-actions): do not auto convert to CRLF when checking out
This is a useful addition to the shared checkout action that will help integrating with Windows support.
1 parent 0b00468 commit 7048ba5

File tree

1 file changed

+8
-0
lines changed
  • github-actions/npm/checkout-and-setup-node

1 file changed

+8
-0
lines changed

github-actions/npm/checkout-and-setup-node/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ inputs:
3232
runs:
3333
using: composite
3434
steps:
35+
# Git checkout converts to CRLF by default. This can cause e.g. the Aspect lock
36+
# files to differ. See: https://github.com/actions/checkout/issues/135.
37+
# It's generally a good idea to prevent such automatic transforms.
38+
- run: |
39+
git config --system core.autocrlf false
40+
git config --system core.eol lf
41+
shell: bash
42+
3543
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3644
with:
3745
filter: blob:none

0 commit comments

Comments
 (0)