From 3fd91ec0f03cf02d5d873044f027eb0abf4f94cc Mon Sep 17 00:00:00 2001 From: "J. Fronny" <33260128+JFronny@users.noreply.github.com> Date: Tue, 7 Apr 2020 21:12:08 +0200 Subject: [PATCH] Fix possibility of decrementing versions --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59d14c7..737bed8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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