Skip to content

Commit

Permalink
Temporary workaround for "subtree" checkout errors on Windows
Browse files Browse the repository at this point in the history
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.

b/282361986
  • Loading branch information
kaidokert committed May 16, 2023
1 parent 0ded38c commit 5f1b187
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main_win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
)
steps:
- id: Checkout
uses: actions/checkout@v3
uses: kaidokert/checkout@v3.5.999 # Temporary version
with:
fetch-depth: 1
persist-credentials: false
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
runs-on: windows-2019
steps:
- name: Checkout files
uses: actions/checkout@v3
uses: kaidokert/checkout@v3.5.999
with:
fetch-depth: 2
persist-credentials: false
Expand Down Expand Up @@ -138,7 +138,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
Expand Down Expand Up @@ -173,7 +173,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
persist-credentials: false
Expand Down

0 comments on commit 5f1b187

Please sign in to comment.