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: #