Skip to content

Commit 7f79e41

Browse files
committed
fix(git): Workaround actions/checkout#1959
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) <buo.ren.lin@gmail.com>
1 parent 91802d1 commit 7f79e41

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
#fetch-tags: true
3131

3232
# Also recursively fetch submodules
33-
submodules: true
33+
# WORKAROUND: Adding this option triggers actions/checkout#1959
34+
#submodules: true
3435

3536
- name: >-
3637
WORKAROUND: Fetch tags that points to the revisions
@@ -43,6 +44,13 @@ jobs:
4344
--depth=100 \
4445
--no-recurse-submodules
4546
47+
- name: >-
48+
WORKAROUND: Checkout submodules recursively(actions/checkout#1959)
49+
run: |-
50+
git submodule \
51+
--init \
52+
--recursive
53+
4654
- name: Determine the project identifier
4755
run: printf "project_id=${GITHUB_REPOSITORY##*/}\\n" >> $GITHUB_ENV
4856

0 commit comments

Comments
 (0)