diff --git a/.github/workflows/android-cts-build.yml b/.github/workflows/android-cts-build.yml index bf53e55e..100154ea 100644 --- a/.github/workflows/android-cts-build.yml +++ b/.github/workflows/android-cts-build.yml @@ -22,7 +22,8 @@ jobs: - uses: actions/checkout@v4 with: lfs: true - fetch-tags: true + fetch-tags: "${{ inputs.gradleTask != 'assembleRelease' }}" + fetch-depth: "${{ github.event.release && '0' || '1'}}" - name: Get modern CMake and Ninja uses: lukka/get-cmake@v3.30.3 diff --git a/.github/workflows/msvc-build-preset.yml b/.github/workflows/msvc-build-preset.yml index a0bbfe44..877b9cc5 100644 --- a/.github/workflows/msvc-build-preset.yml +++ b/.github/workflows/msvc-build-preset.yml @@ -32,7 +32,8 @@ jobs: - uses: actions/checkout@v4 with: lfs: true - fetch-tags: true + fetch-tags: "${{ !github.event.release }}" + fetch-depth: "${{ github.event.release && '0' || '1'}}" - name: Get modern CMake and Ninja uses: lukka/get-cmake@v3.30.3