Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Sep 18, 2024
1 parent 02a656a commit 8530485
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/comment-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ jobs:
done || true
- name: Output non-English comments if found
id: check-comments
run: |
if [ -s non_english_comments.txt ]; then
echo "Non-English comments found in the following locations:"
cat non_english_comments.txt
comments=$(cat non_english_comments.txt)
echo "::set-output name=non_english_comments::$comments"
exit 1 # terminate the workflow
else
echo "No Non-English comments found."
Expand All @@ -73,5 +76,5 @@ jobs:
body: |
⚠️ Non-English comments were found in the following locations:
```
$(cat non_english_comments.txt)
${{ steps.check-comments.outputs.non_english_comments }}
```

0 comments on commit 8530485

Please sign in to comment.