Sync eng/common directory with azure-sdk-tools for PR 13102 (#6851)
* Added forRelease input parameter * Added 'forRelease' to template * Added log --------- Co-authored-by: ray chen <raychen@microsoft.com>
This commit is contained in:
parent
20ee0acdf5
commit
243b4de513
@ -4,6 +4,9 @@ parameters:
|
||||
- name: Condition
|
||||
type: string
|
||||
default: succeeded()
|
||||
- name: ForRelease
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
steps:
|
||||
- task: Powershell@2
|
||||
@ -11,6 +14,7 @@ steps:
|
||||
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Verify-ChangeLogs.ps1
|
||||
arguments: >
|
||||
-PackagePropertiesFolder '${{ parameters.PackagePropertiesFolder }}'
|
||||
-ForRelease $${{ parameters.ForRelease }}
|
||||
pwsh: true
|
||||
displayName: Verify ChangeLogEntries
|
||||
condition: ${{ parameters.Condition }}
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
# Wrapper Script for ChangeLog Verification in a PR
|
||||
[CmdletBinding()]
|
||||
param (
|
||||
[String]$PackagePropertiesFolder
|
||||
[String]$PackagePropertiesFolder,
|
||||
[boolean]$ForRelease = $False
|
||||
)
|
||||
Set-StrictMode -Version 3
|
||||
|
||||
@ -33,7 +34,9 @@ foreach($propertiesFile in $packageProperties) {
|
||||
continue
|
||||
}
|
||||
|
||||
$validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.ChangeLogPath -VersionString $PackageProp.Version -ForRelease $false
|
||||
Write-Host "Verifying changelog for $($PackageProp.Name)"
|
||||
|
||||
$validChangeLog = Confirm-ChangeLogEntry -ChangeLogLocation $PackageProp.ChangeLogPath -VersionString $PackageProp.Version -ForRelease $ForRelease
|
||||
|
||||
if (-not $validChangeLog) {
|
||||
$allPassing = $false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user