@@ -43,24 +43,16 @@ jobs:
43
43
44
44
steps :
45
45
- 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
57
49
- name : Install GitVersion
58
- uses : gittools/actions/setup- gitversion@v0.3
50
+ uses : gittools/actions/gitversion/setup @v0.9.1
59
51
with :
60
- versionSpec : ' 5.1.2 '
52
+ versionSpec : ' 5.1.3 '
61
53
- name : Run GitVersion
62
54
id : gitversion
63
- uses : gittools/actions/execute- gitversion@v0.3
55
+ uses : gittools/actions/gitversion/execute @v0.9.1
64
56
- name : Set up JDK
65
57
uses : actions/setup-java@v1
66
58
with :
@@ -146,24 +138,16 @@ jobs:
146
138
needs : [build]
147
139
steps :
148
140
- 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
160
144
- name : Install GitVersion
161
- uses : gittools/actions/setup- gitversion@v0.3
145
+ uses : gittools/actions/gitversion/setup @v0.9.1
162
146
with :
163
- versionSpec : ' 5.1.2 '
147
+ versionSpec : ' 5.1.3 '
164
148
- name : Run GitVersion
165
149
id : gitversion
166
- uses : gittools/actions/execute- gitversion@v0.3
150
+ uses : gittools/actions/gitversion/execute @v0.9.1
167
151
- name : Get linux binaries
168
152
uses : actions/download-artifact@master
169
153
with :
0 commit comments