File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 21
21
CreateJson : yes
22
22
23
23
- task : AzureFileCopy@1
24
- displayName : ' upload signed msi to Azure - ${{ parameters.architecture }}'
24
+ displayName : ' upload daily-build-info JSON file to Azure - ${{ parameters.architecture }}'
25
25
inputs :
26
26
SourcePath : ' $(BuildInfoPath)'
27
27
azureSubscription : ' $(AzureFileCopySubscription)'
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function New-BuildInfoJson {
19
19
[switch ] $IsDaily
20
20
)
21
21
22
- $blobName = $ReleaseTag -replace ' \.' , ' -'
22
+ $blobName = $ReleaseTag -replace ' \.' , ' -'
23
23
24
24
$isPreview = $ReleaseTag -like ' *-*'
25
25
@@ -33,8 +33,13 @@ function New-BuildInfoJson {
33
33
$filename = ' daily.json'
34
34
}
35
35
36
+ # # Get the UTC time and round up to the second.
37
+ $dateTime = [datetime ]::UtcNow
38
+ $dateTime = [datetime ]::new($dateTime.Ticks - ($dateTime.Ticks % [timespan ]::TicksPerSecond), $dateTime.Kind )
39
+
36
40
@ {
37
41
ReleaseTag = $ReleaseTag
42
+ ReleaseDate = $dateTime
38
43
BlobName = $blobName
39
44
} | ConvertTo-Json | Out-File - Encoding ascii - Force - FilePath $filename
40
45
You can’t perform that action at this time.
0 commit comments