From ab39c6ac6816c8499cc87050a21945f984638dab Mon Sep 17 00:00:00 2001 From: Spencer Gilbert Date: Wed, 28 Jun 2023 13:55:21 -0400 Subject: [PATCH] chore: Fix publish workflow for older OS images (#17787) Resolves git submodule issue on older OS images. Based on https://github.com/actions/checkout/issues/758#issuecomment-1097027361 --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bf2efe25dba7f..e4ea253a558e8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -320,7 +320,11 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.git_ref }} - submodules: "recursive" + # Workaround for older OS images + # https://github.com/actions/checkout/issues/758 + - name: Checkout submodules + run: | + git submodule update --init --recursive - name: Download staged package artifacts (x86_64-unknown-linux-gnu) uses: actions/download-artifact@v3 with: