From be902639fc3a585fec0d48426ebaa63bfb1ac786 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:41:54 -0400 Subject: [PATCH] backport of commit 163c03f514261627275b1fd36e4b857a108391ac (#23606) Co-authored-by: Hamid Ghaf <83242695+hghaf099@users.noreply.github.com> --- .github/scripts/verify_changes.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/verify_changes.sh b/.github/scripts/verify_changes.sh index ccab8bb48..ad5a03074 100755 --- a/.github/scripts/verify_changes.sh +++ b/.github/scripts/verify_changes.sh @@ -26,8 +26,9 @@ else fi # git diff with ... shows the differences between base_commit and head_commit starting at the last common commit -changed_dir=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq) -change_count=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq | wc -l) +# excluding the changelog directory +changed_dir=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq | sed '/changelog/d') +change_count=$(git diff $base_commit...$head_commit --name-only | awk -F"/" '{ print $1}' | uniq | sed '/changelog/d' | wc -l) # There are 4 main conditions to check: #