Skip to content

Commit

Permalink
ci: Do not fail if changelog is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
zaloisio committed Apr 23, 2020
1 parent 0202e5a commit b4f0746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
Expand Down

0 comments on commit b4f0746

Please sign in to comment.