Skip to content

Commit 9b351ff

Browse files
committed
fix: WPB-25755 allow for no change detection in changelog.d directory if file addition and removal is part of the same PR
1 parent ba20d77 commit 9b351ff

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/changelog-verify.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ jobs:
6565
ALLOW_RELEASE_CLEANUP=false
6666
6767
if [ -z "$CHANGED_FILES" ]; then
68-
if [ -n "$DELETED_FILES" ] && [ -n "$CHANGELOG_MODIFIED" ]; then
69-
echo "No new or modified changelog.d/ entries found, but CHANGELOG.md changed, so this release cleanup is allowed."
68+
if [ -n "$CHANGELOG_MODIFIED" ]; then
69+
if [ -n "$DELETED_FILES" ]; then
70+
echo "Release detected via CHANGELOG.md update; deleted changelog.d/ entries are allowed."
71+
else
72+
echo "Release detected via CHANGELOG.md update; no changelog.d/ deletions found in this compare range."
73+
fi
7074
ALLOW_RELEASE_CLEANUP=true
7175
else
7276
echo "No files changed in changelog.d/ for this ${GITHUB_EVENT_NAME:-event}."

0 commit comments

Comments
 (0)