From b4f07469de57b8032232a3999d0bf9a5aed4ee79 Mon Sep 17 00:00:00 2001 From: Antonio Aloisio Date: Fri, 24 Apr 2020 01:34:42 +0200 Subject: [PATCH] ci: Do not fail if changelog is empty --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4cd652edfb1..2f69625fc0b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: PREVIOUS_TAG=$(git tag --sort=-version:refname | grep -vE "snapshot|beta|alpha|${CIRCLE_TAG}" | grep ${REGXP_TO_MATCH} | head -n 1) echo "Generating logs between the tags ${PREVIOUS_TAG} and ${CURRENT_TAG}" echo "Changes from the latest stable gnuton build (${PREVIOUS_TAG}):" > "${CHANGELOG_FILE}" - git log ${PREVIOUS_TAG}...${CURRENT_TAG} --pretty=format:'* %s' --reverse | grep -vE 'Merge branch|ci:|Bump' >> "${CHANGELOG_FILE}" + git log ${PREVIOUS_TAG}...${CURRENT_TAG} --pretty=format:'* %s' --reverse | grep -vE 'Merge branch|ci:|Bump' >> "${CHANGELOG_FILE}" || echo "WARNING: The Changelog is empty!!" cat "${CHANGELOG_FILE}" else echo "No changelog to generate. Changelog is generated only for tags matching ${REGXP_TO_MATCH}";