Skip to content

Commit

Permalink
chore: fix pcregrep file is too long for the internal buffer (#5930)
Browse files Browse the repository at this point in the history
(cherry picked from commit 492cc65)
  • Loading branch information
JashBook committed Nov 28, 2023
1 parent a023dfc commit 6caedba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/cicd-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,17 @@ jobs:
sudo apt-get update
sudo apt-get install pcregrep
- name: gen pcregrep
run: |
pcregrep --exclude-dir=mtr -r -n -I '[^\x00-\x7f]' . > pcregrep.out
- name: pcregrep Chinese
run: |
FILE_PATH=`git diff --name-only HEAD ${{ needs.trigger-mode.outputs.base-commitid }}`
echo "FILE_PATH: $FILE_PATH"
for filePath in $(echo "$FILE_PATH"); do
filePath="${filePath%/*}"
if [[ -d $filePath ]]; then
echo $(pcregrep -r -n -I '[^\x00-\x7f]' $filePath >> pcregrep.out)
fi
done
python ${{ github.workspace }}/.github/utils/pcregrep.py \
--source="${{ github.workspace }}/pcregrep.out" \
--filter="$FILE_PATH"
Expand Down

0 comments on commit 6caedba

Please sign in to comment.