Skip to content

Commit

Permalink
update: behaviour for submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
Truongphikt authored Jul 17, 2024
1 parent 45c13a5 commit f06db89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Clone the ${{ env.REPO_TYPE }}
if: ${{ env.NEED_CLONE == 1 }}
run: |
git clone ${{ env.REPO_LINK }} ./${{ env.REPO_TYPE }}s/ktest/${{ env.REPO_NAME }}
git clone --recurse-submodules -j8 ${{ env.REPO_LINK }} ./${{ env.REPO_TYPE }}s/ktest/${{ env.REPO_NAME }}
- name: Get last commit of ${{ env.REPO_TYPE }}
if: ${{ env.NEED_CLONE == 1 }}
Expand All @@ -102,7 +102,7 @@ jobs:
- name: Clean git of ${{ env.REPO_TYPE }}
if: ${{ env.NEED_CLONE == 1 }}
run: |
rm -rf ./${{ env.REPO_TYPE }}s/ktest/${{ env.REPO_NAME }}/.git/
find ./${{ env.REPO_TYPE }}s/ktest/${{ env.REPO_NAME }} -type d -name ".git" -exec rm -rf {} +
- name: Commit changes
if: ${{ env.NEED_CLONE == 1 }}
Expand Down

0 comments on commit f06db89

Please sign in to comment.