From 384dd42c68b8e7c58cffda87ec8140906f041310 Mon Sep 17 00:00:00 2001 From: ImJeremyHe Date: Tue, 27 Aug 2024 13:33:08 +0800 Subject: [PATCH] Bodge for checkout action --- .github/workflows/ci.yml | 8 ++++++-- .github/workflows/espresso-e2e.yml | 10 +++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 977845f23d2..2f1ad46914b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - submodules: true + + - name: Submodule # Bodge for https://github.com/actions/checkout/issues/1855 + run: | + git submodule update --init + git submodule foreach --recursive git clean -ffdx + git submodule foreach --recursive git reset --hard - name: Install dependencies run: > diff --git a/.github/workflows/espresso-e2e.yml b/.github/workflows/espresso-e2e.yml index de8d7afd8c2..6ce750dc155 100644 --- a/.github/workflows/espresso-e2e.yml +++ b/.github/workflows/espresso-e2e.yml @@ -19,9 +19,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 - with: - submodules: true + uses: actions/checkout@v4 + + - name: Submodule # Bodge for https://github.com/actions/checkout/issues/1855 + run: | + git submodule update --init + git submodule foreach --recursive git clean -ffdx + git submodule foreach --recursive git reset --hard - name: Install dependencies run: >