Skip to content

Commit

Permalink
321
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Sep 18, 2024
1 parent 8530485 commit 48511ea
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/comment-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
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"
comments=$(cat non_english_comments.txt | sed ':a;N;$!ba;s/\n/\\n/g')
echo "non_english_comments=$comments" >> $GITHUB_ENV
exit 1 # terminate the workflow
else
echo "No Non-English comments found."
Expand All @@ -71,10 +71,10 @@ jobs:
if: failure() # This step runs only if the previous step fails
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }} # GitHub token to post the comment
issue-number: ${{ github.event.pull_request.number }} # PR number
body: |
⚠️ Non-English comments were found in the following locations:
```
${{ steps.check-comments.outputs.non_english_comments }}
```
token: ${{ secrets.GITHUB_TOKEN }} # GitHub token to post the comment
issue-number: ${{ github.event.pull_request.number }} # PR number
body: |
⚠️ Non-English comments were found in the following locations:
```
${{ steps.check-comments.outputs.non_english_comments }}
```

0 comments on commit 48511ea

Please sign in to comment.