Skip to content

Commit

Permalink
check-changelogs.sh: bugfix (#1348)
Browse files Browse the repository at this point in the history
Fixes #1347
  • Loading branch information
nfrisby authored Dec 18, 2024
2 parents e717d56 + cd52d3c commit 592e11c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ci/check-changelogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 592e11c

Please sign in to comment.