aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLoris Cro <kappaloris@gmail.com>2022-11-25 20:41:33 +0100
committerLoris Cro <kappaloris@gmail.com>2022-11-25 20:41:33 +0100
commit45120f929cbe87952c5361db9028495a41b656b5 (patch)
treedd81876b10f0d6848ac20f222f28e097d0b3115a /.github
parentf4c63400f0d87c6c24e11995501f119a6029b683 (diff)
downloadzig-45120f929cbe87952c5361db9028495a41b656b5.tar.gz
zig-45120f929cbe87952c5361db9028495a41b656b5.zip
ci: windows: unshallow repository before checking specific commit
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index e1eb7d5b2a..eece38fe3a 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 .