From ca67688ae5b3414f5f7f3fd5de80b7507fe4e647 Mon Sep 17 00:00:00 2001 From: dotasek Date: Thu, 3 Feb 2022 16:46:54 -0500 Subject: [PATCH] Create release notes template --- RELEASE_NOTES.template.md | 7 +++++++ release-branch-pipeline.yml | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 RELEASE_NOTES.template.md diff --git a/RELEASE_NOTES.template.md b/RELEASE_NOTES.template.md new file mode 100644 index 000000000..7b06c6ab5 --- /dev/null +++ b/RELEASE_NOTES.template.md @@ -0,0 +1,7 @@ +## Validator Changes + +* no changes + +## Other code changes + +* no changes \ No newline at end of file diff --git a/release-branch-pipeline.yml b/release-branch-pipeline.yml index d10c18bfa..a3cd0d070 100644 --- a/release-branch-pipeline.yml +++ b/release-branch-pipeline.yml @@ -12,13 +12,13 @@ variables: 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 + if [ -n "$(cmp RELEASE_NOTES.md RELEASE_NOTES.template.md)" ] + then + echo "RELEASE_NOTES.md has changed, proceeding to next step" + else + echo "Your RELEASE_NOTES.md file is unchanged. Please provide release notes before creating a release." + exit 1 + fi # 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.