add --depth=1 to git clone.

This commit is contained in:
AirryCo
2024-11-28 18:12:22 +08:00
parent 695eabb71c
commit ebbd53106f
8 changed files with 17 additions and 22 deletions

View File

@@ -221,7 +221,6 @@ jobs:
build-docker-image-multi-arch:
needs: [prepare, build-server-linux]
if: needs.prepare.outputs.PROCEED == 'true' || needs.prepare.outputs.PROCEED_FIKA == 'true'
runs-on: ubuntu-latest
env:
DOCKERHUB_USER: stblog
@@ -369,7 +368,6 @@ jobs:
build-server-windows:
needs: [prepare, build-server-linux]
if: ${{ needs.prepare.outputs.PROCEED == 'true' }}
runs-on: windows-latest
env:
OUTPUT_DIR: spt-server
@@ -386,7 +384,7 @@ jobs:
- name: Clone AirroCo's Server Code
run: |
git clone -b ${{ env.RELEASE_BRANCH }} ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER_AIRRYCO }} ${{ env.SOURCECODE_DIR }}
git clone -b ${{ env.RELEASE_BRANCH }} --depth=1 ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER_AIRRYCO }} ${{ env.SOURCECODE_DIR }}
cd ${{ env.SOURCECODE_DIR }}
git lfs pull
shell: bash