Skip to content

Commit 80a5bdf

Browse files
committed
Fix: awk script did not check each line of input
1 parent b7ad37b commit 80a5bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docs-checker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- name: Get changed file names of files changed in PR
2222
run: git diff -U0 ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -P "^(?!.*(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])).*" | grep -P "^\+{1}(?!\+)" > diff_files.txt
2323
- name: Count line lengths in diff_files.txt
24-
run: "awk -F: 'BEGIN { if(length>100) { err = 1; exit; } } END {exit err}' diff_files.txt"
24+
run: "awk -F: '{ if(length>100) { err = 1; exit err; } }' diff_files.txt"

0 commit comments

Comments
 (0)