Skip to content

Commit 075384e

Browse files
Allow long filenames in git for the Windows Github runners
1 parent 2ff4217 commit 075384e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/desktop-e2e.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ jobs:
317317
!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'
318318
runs-on: windows-latest
319319
steps:
320+
# By default, the longest path a filename can have in git on Windows is 260 character.
321+
- name: Set git config for long paths
322+
run: |
323+
git config --system core.longpaths true
320324
- name: Checkout repository
321325
uses: actions/checkout@v4
322326
- name: Checkout submodules

.github/workflows/frontend.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818

1919
runs-on: ${{ matrix.os }}
2020
steps:
21+
# By default, the longest path a filename can have in git on Windows is 260 character.
22+
- name: Set git config for long paths
23+
run: |
24+
git config --system core.longpaths true
25+
2126
- name: Checkout repository
2227
uses: actions/checkout@v4
2328

0 commit comments

Comments
 (0)