From cd52d3ccb008d0276caf10208a8112af3860a982 Mon Sep 17 00:00:00 2001 From: Nicolas Frisby Date: Wed, 18 Dec 2024 10:03:27 -0800 Subject: [PATCH] check-changelogs.sh: bugfix Fixes https://github.com/IntersectMBO/ouroboros-consensus/issues/1347 --- scripts/ci/check-changelogs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/check-changelogs.sh b/scripts/ci/check-changelogs.sh index 4ec78c26e9..63e9570153 100755 --- a/scripts/ci/check-changelogs.sh +++ b/scripts/ci/check-changelogs.sh @@ -35,7 +35,7 @@ else for p in "${tracked_libs[@]}"; do printf "\t- %s\n" "$p" if ! git diff --quiet --name-only "origin/${BASE_REF}" -- "$p/***.hs"; then - if ! git diff --quiet --name-only --diff-filter=A "origin/${BASE_REF}" -- "$p/changelog.d" ; then + if ! git diff --quiet --name-only --diff-filter=A "origin/${BASE_REF}" -- "$(echo $p | cut -d/ -f1)/changelog.d" ; then printf "\t\tNew fragments found. OK.\n" git diff --name-only --diff-filter=A "origin/${BASE_REF}" -- "$p/changelog.d" | sed 's/^/\t\t- /g' else @@ -50,7 +50,7 @@ else for p in "${packages[@]}"; do printf "\t- %s\n" "$p" if ! git diff --quiet --name-only "origin/${BASE_REF}" -- "$p/***.cabal"; then - if ! git diff --quiet --name-only --diff-filter=A "origin/${BASE_REF}" -- "$p/changelog.d" ; then + if ! git diff --quiet --name-only --diff-filter=A "origin/${BASE_REF}" -- "$(echo $p | cut -d/ -f1)/changelog.d" ; then printf "\t\tNew fragments found. OK.\n" git diff --name-only --diff-filter=A "origin/${BASE_REF}" -- "$p/changelog.d" | sed 's/^/\t\t- /g' else