From 984147ec91c3940ecc5e19a2714802f28e4d27f4 Mon Sep 17 00:00:00 2001 From: Josh Johanning Date: Wed, 1 Oct 2025 10:55:40 -0500 Subject: [PATCH] fix: ensure pipefail is set for linting commands in workflow --- .github/workflows/lint-readme.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-readme.yml b/.github/workflows/lint-readme.yml index c8d8186..e2f3f9f 100644 --- a/.github/workflows/lint-readme.yml +++ b/.github/workflows/lint-readme.yml @@ -21,7 +21,9 @@ jobs: - name: Lint ./gh-cli/README.md id: lint - run: node ./.github/scripts/lint-readme.js | tee gh-cli-readme-lint-results.txt + run: | + set -o pipefail + node ./.github/scripts/lint-readme.js | tee gh-cli-readme-lint-results.txt - name: Upload lint results if: steps.lint.outcome == 'failure' || steps.lint.outcome == 'success' @@ -42,7 +44,9 @@ jobs: - name: Lint ./scripts/README.md id: lint - run: node ./.github/scripts/lint-readme.js ./scripts '##' '# scripts' | tee scripts-readme-lint-results.txt + run: | + set -o pipefail + node ./.github/scripts/lint-readme.js ./scripts '##' '# scripts' | tee scripts-readme-lint-results.txt - name: Upload lint results if: steps.lint.outcome == 'failure' || steps.lint.outcome == 'success'