8000 Leverage APPVEYOR_REPO_COMMIT_TIMESTAMP as build date · thatfrankdev/libgit2sharp@bf31d3d · GitHub
[go: up one dir, main page]

Skip to content

Commit bf31d3d

Browse files
committed
Leverage APPVEYOR_REPO_COMMIT_TIMESTAMP as build date
1 parent b59c8a4 commit bf31d3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ install:
3939
Write-Host "Is a Pull Request = " -NoNewLine
4040
Write-Host $($Env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null) -ForegroundColor "Green"
4141
42-
$BuildDate = (Get-Date).ToUniversalTime().ToString("yyyyMMddHHmmss")
43-
Write-Host "Build UTC date = " -NoNewLine
42+
$CommitDate = [DateTime]::Parse($Env:APPVEYOR_REPO_COMMIT_TIMESTAMP)
43+
$BuildDate = $CommitDate.ToUniversalTime().ToString("yyyyMMddHHmmss")
44+
Write-Host "Merge commit UTC timestamp = " -NoNewLine
4445
Write-Host $BuildDate -ForegroundColor "Green"
4546
4647
$VersionSuffix = ""

0 commit comments

Comments
 (0)
0