From 9889aa10bd5bc6bf65265d93780ec39f0770cacc Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Tue, 15 Apr 2025 20:21:21 +0800 Subject: [PATCH] chore: speed up git checkout by removing fetch-depth 0 to avoid pulling all tags and branches (#18103) --- .github/workflows/api-tests.yml | 1 - .github/workflows/style.yml | 4 ---- .github/workflows/tool-test-sdks.yaml | 1 - .github/workflows/vdb-tests.yml | 1 - .github/workflows/web-tests.yml | 1 - 5 files changed, 8 deletions(-) diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml index 69b75a9712..05f23a0f68 100644 --- a/.github/workflows/api-tests.yml +++ b/.github/workflows/api-tests.yml @@ -30,7 +30,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Setup UV and Python diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index fbdd80ec1b..28a57d21b2 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -18,7 +18,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Check changed files @@ -66,7 +65,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Check changed files @@ -105,7 +103,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Check changed files @@ -136,7 +133,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Check changed files diff --git a/.github/workflows/tool-test-sdks.yaml b/.github/workflows/tool-test-sdks.yaml index a6e48d1359..b1ccd7417a 100644 --- a/.github/workflows/tool-test-sdks.yaml +++ b/.github/workflows/tool-test-sdks.yaml @@ -27,7 +27,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} diff --git a/.github/workflows/vdb-tests.yml b/.github/workflows/vdb-tests.yml index 96a57de5ad..b1f0b15702 100644 --- a/.github/workflows/vdb-tests.yml +++ b/.github/workflows/vdb-tests.yml @@ -29,7 +29,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Setup UV and Python diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml index 85e8b99473..37cfdc5c1e 100644 --- a/.github/workflows/web-tests.yml +++ b/.github/workflows/web-tests.yml @@ -23,7 +23,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Check changed files