ci(news): treat deprecated.txt as part of news.txt

This is because we reference to deprecated.txt from news.txt, so
deprecation news updates are made only in deprecated.txt.
This commit is contained in:
dundargoc
2025-01-20 17:34:53 +01:00
committed by dundargoc
parent 20e16c1c49
commit 0bc75ac78e

View File

@ -20,7 +20,7 @@ jobs:
type="$(echo "$message" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')"
breaking="$(echo "$message" | sed -E 's|[[:alpha:]]+(\(.*\))?!:.*|breaking-change|')"
if [[ "$type" == "feat" ]] || [[ "$type" == "perf" ]] || [[ "$breaking" == "breaking-change" ]]; then
! git diff HEAD~${{ github.event.pull_request.commits }}..HEAD --quiet runtime/doc/news.txt ||
! git diff HEAD~${{ github.event.pull_request.commits }}..HEAD --quiet runtime/doc/news.txt runtime/doc/deprecated.txt ||
{
echo "
Pull request includes a new feature, performance improvement