Skip to content

Commit 7a5f367

Browse files
Temporary workaround for "subtree" checkout errors on Windows (#383) (#386)
This switches Windows workers, which are not yet ephemeral to use a patched version of checkouts. This guarantees always cleaning up repo state even in case of previous bad submodules-like repo operations done by a previous run. In the long run, we should be using ephemeral workers, and switch to upstream fixed version if the PR gets merged upstream. Upstream PR: actions/checkout#1321 b/282361986 b/258687270 (cherry picked from commit 3c24834) Co-authored-by: Kert <kaidokert@google.com>
1 parent 0b3e961 commit 7a5f367

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main_win.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
)
6060
steps:
6161
- id: Checkout
62-
uses: actions/checkout@v3
62+
uses: kaidokert/checkout@v3.5.999 # Temporary version
6363
with:
6464
fetch-depth: 1
6565
- name: Remove runtest if exists
@@ -101,7 +101,7 @@ jobs:
101101
runs-on: windows-2019
102102
steps:
103103
- name: Checkout files
104-
uses: actions/checkout@v3
104+
uses: kaidokert/checkout@v3.5.999
105105
with:
106106
fetch-depth: 2
107107
- name: Login to Docker Registry ${{env.REGISTRY}}
@@ -128,7 +128,7 @@ jobs:
128128
config: [devel, debug, qa, gold]
129129
steps:
130130
- name: Checkout
131-
uses: actions/checkout@v3
131+
uses: kaidokert/checkout@v3.5.999
132132
with:
133133
# Use fetch depth of 0 to get full history for a valid build id.
134134
fetch-depth: 0
@@ -161,7 +161,7 @@ jobs:
161161
include: ${{ fromJson(needs.initialize.outputs.includes) }}
162162
steps:
163163
- name: Checkout
164-
uses: actions/checkout@v3
164+
uses: kaidokert/checkout@v3.5.999
165165
with:
166166
fetch-depth: 1
167167
- name: Run Tests

0 commit comments

Comments
 (0)