Skip to content

Commit

Permalink
fix(github-actions/release): Limit fetch depth to reduce submodule ch…
Browse files Browse the repository at this point in the history
…eckout time

Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed Oct 27, 2024
1 parent 11a9ac1 commit a68dd6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
run: |-
git submodule update \
--init \
--recursive
--recursive \
--depth 1
- name: Determine the project identifier
run: printf "project_id=${GITHUB_REPOSITORY##*/}\\n" >> $GITHUB_ENV
Expand Down
3 changes: 3 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
variables:
GIT_SUBMODULE_STRATEGY: recursive

# Limit fetch depth to reduce submodule checkout time
GIT_SUBMODULE_DEPTH: 1

do-static-analysis:
stage: test
rules:
Expand Down

0 comments on commit a68dd6b

Please sign in to comment.