From b3c7a72e2dec07dcdab849624d5f2febca60ce4e Mon Sep 17 00:00:00 2001 From: Kert Date: Mon, 15 May 2023 22:34:11 -0700 Subject: [PATCH] Temporary workaround for "subtree" checkout errors on Windows (#383) 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: https://github.com/actions/checkout/pull/1321 b/282361986 b/258687270 (cherry picked from commit 3c24834013891e543aa730b475234bac4dedf445) --- .github/workflows/main_win.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main_win.yaml b/.github/workflows/main_win.yaml index 780882a9e6f7..32db4b24c5b5 100644 --- a/.github/workflows/main_win.yaml +++ b/.github/workflows/main_win.yaml @@ -59,7 +59,7 @@ jobs: ) steps: - id: Checkout - uses: actions/checkout@v3 + uses: kaidokert/checkout@v3.5.999 # Temporary version with: fetch-depth: 1 - name: Remove runtest if exists @@ -101,7 +101,7 @@ jobs: runs-on: windows-2019 steps: - name: Checkout files - uses: actions/checkout@v3 + uses: kaidokert/checkout@v3.5.999 with: fetch-depth: 2 - name: Login to Docker Registry ${{env.REGISTRY}} @@ -128,7 +128,7 @@ jobs: config: [devel, debug, qa, gold] steps: - name: Checkout - uses: actions/checkout@v3 + uses: kaidokert/checkout@v3.5.999 with: # Use fetch depth of 0 to get full history for a valid build id. fetch-depth: 0 @@ -161,7 +161,7 @@ jobs: include: ${{ fromJson(needs.initialize.outputs.includes) }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: kaidokert/checkout@v3.5.999 with: fetch-depth: 1 - name: Run Tests