diff --git a/.github/workflows/comment-check.yml b/.github/workflows/comment-check.yml index 4894ab1..8e985a0 100644 --- a/.github/workflows/comment-check.yml +++ b/.github/workflows/comment-check.yml @@ -78,7 +78,8 @@ jobs: pattern='[\p{Han}]' # Get the list of files changed in this PR compared to the base branch - changed_files=$(git diff --name-only ${{ github.event.pull_request.head.sha }}) + changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}) + # Loop over each changed file for file in $changed_files; do