Skip to content

Commit

Permalink
Updated `check-changelogs.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Oct 28, 2024
1 parent fe8b5f7 commit ad30d29
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 @@ -9,8 +9,8 @@ RESULT=0
function check_project () {
project=$1
n=$()
if [[ -n $(git diff --name-only origin/master..HEAD -- $project) ]];then
if [[ -z $(git diff --name-only origin/master..HEAD -- $project/CHANGELOG.md) ]]; then
if [[ -n $(git diff --name-only origin/main..HEAD -- $project) ]];then
if [[ -z $(git diff --name-only origin/main..HEAD -- $project/CHANGELOG.md) ]]; then
echo "$project was modified but its CHANGELOG was not updated"
RESULT=1
fi
Expand Down

0 comments on commit ad30d29

Please sign in to comment.