Skip to content

Commit 80db48c

Browse files
committed
Configure formatting check CI workflow to not convert EOL
GitHub Actions has the annoying behavior of converting LF to CRLF when checking out on the Windows runner. This caused the formatting check to fail because Prettier now mandates Unix-style EOL.
1 parent 3c87b7b commit 80db48c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/setup-taskflile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ jobs:
1313
operating-system: [ubuntu-latest, windows-latest]
1414

1515
steps:
16+
# GitHub Actions has the annoying behavior of converting LF to CRLF when checking out on the Windows runner
17+
- name: Disable EOL conversions
18+
run: git config --global core.autocrlf false
19+
1620
- name: Checkout
1721
uses: actions/checkout@master
1822

0 commit comments

Comments
 (0)