diff --git a/.github/scripts/check-changelog.sh b/.github/scripts/check-changelog.sh index 5402f4905..d6887bc1a 100755 --- a/.github/scripts/check-changelog.sh +++ b/.github/scripts/check-changelog.sh @@ -11,7 +11,7 @@ git fetch echo $(git branch -a) # Check if the changelog file was modified in the PR -if git diff --name-only origin/$GITHUB_BASE_REF..$GITHUB_SOURCE_REF | grep -q $CHANGELOG_FILE; then +if git diff --name-only origin/$GITHUB_BASE_REF..remotes/pull/$GITHUB_SOURCE_REF | grep -q $CHANGELOG_FILE; then echo "Thank you for updating the changelog!" exit 0 else