Skip to content

Commit

Permalink
fix to run in fork repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Sep 21, 2024
1 parent 3f958ba commit 8853324
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/comment-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [opened, synchronize, reopened]
branches:
- main
# workflow_dispatch:
workflow_dispatch:

jobs:
non-english-comments-check:
Expand All @@ -23,7 +23,9 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Search for Non-English comments in the entire repository
run: |
Expand Down Expand Up @@ -74,7 +76,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.base.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
Expand Down Expand Up @@ -151,7 +154,4 @@ jobs:
⚠️ Non-English comments were found in the following locations:
```
${{ env.NON_ENGLISH_COMMENTS }}
```
## 添加一点中文来测试
```

0 comments on commit 8853324

Please sign in to comment.