Skip to content

Commit

Permalink
Improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
phklive committed Jul 18, 2024
1 parent d6de3b6 commit 8b45874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/check-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ CHANGELOG_FILE="${1:-CHANGES.md}"

if [ "${NO_CHANGELOG_LABEL}" = "true" ]; then
# 'no changelog' set, so finish successfully
echo "::info no changelog label has been set"
echo $'::info no changelog label has been set'
exit 0
else
# a changelog check is required
# fail if the diff is empty
if git diff --exit-code "origin/${BASE_REF}" -- "${CHANGELOG_FILE}"; then
>&2 echo "::warning Changes should come with an entry in the CHANGELOG.md file. This behavior
>&2 echo $'::warning Changes should come with an entry in the CHANGELOG.md file. This behavior
can be overridden by using the \"no changelog\" label, which is used for changes
that trivial / explicitely decided not to need a changelog entry."
that trivial / explicitely decided not to need a changelog entry.'
exit 1
fi
fi

0 comments on commit 8b45874

Please sign in to comment.