Skip to content

Commit ba13296

Browse files
authored
ci(docs): fix linter v2 pipeline (supabase#30930)
The linter was failing whenever grep turned up empty because pipefail was on, now ignoring grep error so it'll stop erroring on all irrelevant PRs 😵
1 parent 67e12df commit ba13296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ jobs:
4545
run: |
4646
set -o pipefail
4747
git diff --name-only origin/$BASE_REF HEAD \
48-
| grep -E "^apps/docs/content/guides/(getting-started|ai|api|auth|database|deployment|functions)/" \
48+
| { grep -E "^apps/docs/content/guides/(getting-started|ai|api|auth|database|deployment|functions)/" || test $? = 1; } \
4949
| xargs -r supa-mdx-lint --format rdf \
5050
| reviewdog -f=rdjsonl -reporter=github-pr-review

0 commit comments

Comments
 (0)