@@ -43,24 +43,16 @@ jobs:
4343
4444 steps :
4545 - name : Checkout source
46- uses : actions/checkout@v2-beta
47- with :
48- fetch-depth : 0
49- - name : Fetch tags and master for GitVersion
50- run : |
51- git fetch --tags origin
52- git rev-parse --verify master
53- if (-not $?) {
54- git branch --force --create-reflog master origin/master
55- }
56- shell : pwsh
46+ uses : actions/checkout@v2
47+ - name : Fetch all history for all tags and branches
48+ run : git fetch --prune --unshallow
5749 - name : Install GitVersion
58- uses : gittools/actions/setup- gitversion@v0.3
50+ uses : gittools/actions/gitversion/setup @v0.9.1
5951 with :
60- versionSpec : ' 5.1.2 '
52+ versionSpec : ' 5.1.3 '
6153 - name : Run GitVersion
6254 id : gitversion
63- uses : gittools/actions/execute- gitversion@v0.3
55+ uses : gittools/actions/gitversion/execute @v0.9.1
6456 - name : Set up JDK
6557 uses : actions/setup-java@v1
6658 with :
@@ -146,24 +138,16 @@ jobs:
146138 needs : [build]
147139 steps :
148140 - name : Checkout source
149- uses : actions/checkout@v2-beta
150- with :
151- fetch-depth : 0
152- - name : Fetch tags and master for GitVersion
153- run : |
154- git fetch --tags origin
155- git rev-parse --verify master
156- if (-not $?) {
157- git branch --force --create-reflog master origin/master
158- }
159- shell : pwsh
141+ uses : actions/checkout@v2
142+ - name : Fetch all history for all tags and branches
143+ run : git fetch --prune --unshallow
160144 - name : Install GitVersion
161- uses : gittools/actions/setup- gitversion@v0.3
145+ uses : gittools/actions/gitversion/setup @v0.9.1
162146 with :
163- versionSpec : ' 5.1.2 '
147+ versionSpec : ' 5.1.3 '
164148 - name : Run GitVersion
165149 id : gitversion
166- uses : gittools/actions/execute- gitversion@v0.3
150+ uses : gittools/actions/gitversion/execute @v0.9.1
167151 - name : Get linux binaries
168152 uses : actions/download-artifact@master
169153 with :
0 commit comments