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 authored and dundargoc committed 2025-01-20 20:39:08 +01:00
1 parent 20e16c1c49
commit 0bc75ac78e
1 file changed
+1 -1
+1 -1
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