diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e1eb7d5b2a5bb266ebe2d4d1fcf7798d0c04b9a0..eece38fe3a2dc50e3e288c38b6e2514fcf87a440 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -124,6 +124,9 @@ jobs: run: | rm -rf ../ci cp -r ci ../ + if ((git rev-parse --is-shallow-repository) -eq "true") { + git fetch --unshallow # `git describe` won't work on a shallow repo + } git checkout ${{ inputs.commit }} rm -rf ci mv ../ci .