@@ -27,13 +27,24 @@ jobs:
27
27
steps :
28
28
- uses : actions/checkout@v2
29
29
30
- - name : Get history and tags for SCM versioning to work
30
+ - name : Get history and tags for SCM versioning to work (Unix)
31
+ if : runner.os != 'Windows'
31
32
run : |
32
33
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
33
34
git fetch --prune --unshallow
34
35
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
35
36
fi
36
37
38
+ - name : Get history and tags for SCM versioning to work (Windows)
39
+ if : runner.os == 'Windows'
40
+ run : |
41
+ $value = git rev-parse --is-shallow-repository
42
+ if ( $value -eq "true" )
43
+ {
44
+ git fetch --prune --unshallow
45
+ git fetch --depth=1 origin +refs/tags/*:refs/tags/*
46
+ }
47
+
37
48
- name : Setup Python ${{ matrix.python }}
38
49
uses : actions/setup-python@v2
39
50
with :
@@ -333,12 +344,14 @@ jobs:
333
344
steps :
334
345
- uses : actions/checkout@v2
335
346
336
- - name : Get history and tags for SCM versioning to work
347
+ - name : Get history and tags for SCM versioning to work (Windows)
337
348
run : |
338
- if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
349
+ $value = git rev-parse --is-shallow-repository
350
+ if ( $value -eq "true" )
351
+ {
339
352
git fetch --prune --unshallow
340
353
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
341
- fi
354
+ }
342
355
343
356
- name : Get pip cache dir
344
357
id : pip-cache
0 commit comments