From 7f79e417163712b1c6020fb30dbbe13d02272b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Sun, 27 Oct 2024 15:11:06 +0800 Subject: [PATCH] fix(git): Workaround actions/checkout#1959 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GitHub Action doesn't seem to like submodules with non-ASCII names, this patch workarounds it by doing the checkout manually. Signed-off-by: ๆž—ๅšไป(Buo-ren Lin) --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20c73b4..78bd5cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,8 @@ jobs: #fetch-tags: true # Also recursively fetch submodules - submodules: true + # WORKAROUND: Adding this option triggers actions/checkout#1959 + #submodules: true - name: >- WORKAROUND: Fetch tags that points to the revisions @@ -43,6 +44,13 @@ jobs: --depth=100 \ --no-recurse-submodules + - name: >- + WORKAROUND: Checkout submodules recursively(actions/checkout#1959) + run: |- + git submodule \ + --init \ + --recursive + - name: Determine the project identifier run: printf "project_id=${GITHUB_REPOSITORY##*/}\\n" >> $GITHUB_ENV