mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Update daily release tag format to work with new Microsoft Update work (#15164)
This commit is contained in:
1 parent
a8a7e045d8
commit
3d49de134e
3 files changed
+11
-3
No files matched your search
@@ -25,7 +25,10 @@ variables:
|
||||
value: 1
|
||||
- name: NugetSecurityAnalysisWarningLevel
|
||||
value: none
|
||||
|
||||
- name: branchCounterKey
|
||||
value: $[format('{0:yyyyMMdd}-{1}', pipeline.startTime,variables['Build.SourceBranch'])]
|
||||
- name: branchCounter
|
||||
value: $[counter(variables['branchCounterKey'], 1)]
|
||||
stages:
|
||||
- stage: prep
|
||||
jobs:
|
||||
|
||||
@@ -55,7 +55,12 @@ jobs:
|
||||
- powershell: |
|
||||
new-item -itemtype Directory -path '$(Build.StagingDirectory)\signedPackages'
|
||||
Get-ChildItem "$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-*.msi*" | copy-item -Destination '$(Build.StagingDirectory)\signedPackages'
|
||||
displayName: 'Fake Signing'
|
||||
displayName: 'Fake msi* Signing'
|
||||
condition: and(succeeded(), ne(variables['SHOULD_SIGN'], 'true'))
|
||||
|
||||
- pwsh: |
|
||||
Get-ChildItem "$(System.ArtifactsDirectory)\signed\PowerShell-$(Version)-win-*.exe" | copy-item -Destination '$(Build.StagingDirectory)\signedPackages'
|
||||
displayName: 'Fake exe Signing'
|
||||
condition: and(succeeded(), ne(variables['SHOULD_SIGN'], 'true'))
|
||||
|
||||
- template: upload.yml
|
||||
|
||||
@@ -92,7 +92,7 @@ if($ReleaseTag -eq 'fromBranch' -or !$ReleaseTag)
|
||||
$versionPart = $versionPart -replace '-.*$'
|
||||
}
|
||||
|
||||
$releaseTag = "$versionPart-daily.$((Get-Date).ToString('yyyyMMdd'))"
|
||||
$releaseTag = "$versionPart-daily$((Get-Date).ToString('yyyyMMdd')).$($env:BRANCHCOUNTER)"
|
||||
$vstsCommandString = "vso[task.setvariable variable=$Variable]$releaseTag"
|
||||
Write-Verbose -Message "setting $Variable to $releaseTag" -Verbose
|
||||
Write-Host -Object "##$vstsCommandString"
|
||||
|
||||
Reference in new issue
Block a user