From c5db9e93a7fb44385a10b6f2ba19b38a2bb6023e Mon Sep 17 00:00:00 2001 From: Mark Iantorno Date: Tue, 7 Jul 2020 09:53:40 -0400 Subject: [PATCH] Adding check for release notes being populated. --- release-branch-pipeline.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/release-branch-pipeline.yml b/release-branch-pipeline.yml index 9c23cec84..520d0c8b7 100644 --- a/release-branch-pipeline.yml +++ b/release-branch-pipeline.yml @@ -10,6 +10,17 @@ variables: VERSION: steps: + # Checks if the release notes file is populated. Exits if it is not. + - bash: | + if [ -s RELEASE_NOTES.md ] + then + echo "RELEASE_NOTES.md has data, proceeding to next step." + else + echo "Your RELEASE_NOTES.md file is empty. Please provide release notes before creating a release." + exit 1 + fi + displayName: 'RELEASE_NOTES.md check' + # This task pulls the value from the org.hl7.fhir.r5 project pom.xml file. All modules are released as # the same version, at the same time, as defined in the root level pom.xml. - task: PowerShell@2