Skip to content

Commit 86c580c

Browse files
committed
wip
Signed-off-by: Sean Tronsen <sean.tronsen@gmail.com>
1 parent 83ca93e commit 86c580c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/lint-docs.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ jobs:
5454
check=true
5555
report_issue=false
5656
if [[ "$EVENT" == pull_request || "$EVENT" == pull_request_target ]]; then
57-
if ! gh api --paginate "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}/files" --jq '.[].filename' \
58-
| grep -qiE '\.(md|markdown|html?|rst)$'; then
57+
# Not piped into grep -q: its early exit fails gh with SIGPIPE.
58+
files=$(gh api --paginate "repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}/files" --jq '.[].filename')
59+
if ! grep -qiE '\.(md|markdown|html?|rst)$' <<< "$files"; then
5960
echo "The PR changes no docs; nothing to check."
6061
check=false
6162
fi

0 commit comments

Comments
 (0)