From b7a79158d2ba4516bbe8055c13d6fa30bc489278 Mon Sep 17 00:00:00 2001 From: George Arama <50641385+gearama@users.noreply.github.com> Date: Thu, 31 Mar 2022 11:24:24 -0700 Subject: [PATCH] Verify changelog (#3489) * bump keys version to 7.3 * Revert "bump keys version to 7.3" This reverts commit e348e966de56f28996b4cb32104088b4414559ed. * bump keys version to 7.3 * Revert "bump keys version to 7.3" This reverts commit e348e966de56f28996b4cb32104088b4414559ed. * add ps1 * dsd * test2 * update paths * package info * conditional * remove extra spaces * missing paran --- .../templates/jobs/archetype-sdk-client.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 243c72b34..d24656dc3 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -195,6 +195,18 @@ jobs: sourceFolder: build/sdk/${{ parameters.ServiceDirectory }}/${{ artifact.Path }}/docs/html targetFolder: $(Build.ArtifactStagingDirectory)/docs/${{ artifact.Name }} displayName: Copy documentation to artifact staging directory + + - task: Powershell@2 + inputs: + filePath: $(Build.SourcesDirectory)/eng/common/scripts/Verify-ChangeLog.ps1 + arguments: > + -ChangeLogLocation sdk/${{ parameters.ServiceDirectory }}/${{ artifact.Path }}/CHANGELOG.md + -VersionString (Get-Content build/sdk/${{ parameters.ServiceDirectory }}/${{ artifact.Path }}/docs/html/package-info.json | ConvertFrom-Json).version + -ForRelease $true + pwsh: true + displayName: Verify CHANGELOG.md contents + continueOnError: true + condition: and(succeeded(), eq(variables['VerifyChangeLogForRelease'], 'true')) - task: PublishPipelineArtifact@1 inputs: