Fix possibility of decrementing versions

This commit is contained in:
J. Fronny 2020-04-07 21:12:08 +02:00 committed by GitHub
parent f6975f68b1
commit 3fd91ec0f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ jobs:
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m -p:Configuration=Release
cp *\bin\Release\net461\package.zip .
[timespan]$span = [System.DateTime]::Now - [datetime]'01/01/2000'
$asmver = "1.0." + $span.Days.ToString() + "." + [math]::Round($span.Seconds / 2).ToString()
$asmver = "1.0." + $span.Days.ToString() + "." + [math]::Round(($span.Seconds + ($span.Minutes + $span.Hours * 60) * 60) / 2).ToString()
echo "::set-output name=vers::$asmver"
- name: Create Release
id: create_release