File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -234,19 +234,10 @@ jobs:
234
234
with :
235
235
submodules : recursive
236
236
237
- # Semver regex: https://regex101.com/r/Ly7O1x/3/
238
- - name : Format Date/Time of Release Package Version
239
- if : ${{ env.IS_RELEASE == 'true' }}
240
- run : |
241
- $ref = "${{ github.ref }}"
242
- $ref -match "^refs/heads/rel/(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*)(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$"
243
- echo "VERSION_DATE=$($matches['patch'])" >> $env:GITHUB_ENV
244
- echo "VERSION_PROPERTY=$($matches['prerelease'])" >> $env:GITHUB_ENV
245
-
246
237
- name : Format Date/Time of Commit for Package Version
247
- if : ${{ env.IS_RELEASE == 'false' }}
248
238
run : |
249
239
echo "VERSION_DATE=$(git log -1 --format=%cd --date=format:%y%m%d)" >> $env:GITHUB_ENV
240
+
250
241
- name : Restore dotnet tools
251
242
run : dotnet tool restore
252
243
@@ -260,7 +251,7 @@ jobs:
260
251
--skip androidemulator
261
252
--skip vswinworkloads
262
253
--verbose
263
-
254
+
264
255
- name : Add msbuild to PATH
265
256
uses : microsoft/setup-msbuild@v2
266
257
with :
You can’t perform that action at this time.
0 commit comments