Skip to content

Commit

Permalink
fix(git): Workaround actions/checkout#1959
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
brlin-tw committed Oct 27, 2024
1 parent 91802d1 commit 7f79e41
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 7f79e41

Please sign in to comment.