From 0684eccc806e3ade075cd59aeaacc504ecc6efd9 Mon Sep 17 00:00:00 2001 From: Zanie Date: Mon, 30 Oct 2023 15:23:33 -0500 Subject: [PATCH] Ensure that ecosystem check job fails if the tooling encounters an unexpected error --- .github/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3e7e63b462e15..1e92fbbae2b34 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -215,6 +215,9 @@ jobs: # Make executable, since artifact download doesn't preserve this chmod +x ./ruff ${{ steps.ruff-target.outputs.download-path }}/ruff + # Set pipefail to avoid hiding errors with tee + set -eo pipefail + ruff-ecosystem check ./ruff ${{ steps.ruff-target.outputs.download-path }}/ruff --cache ./checkouts --output-format markdown | tee ecosystem-result-check cat ecosystem-result-check > $GITHUB_STEP_SUMMARY @@ -227,6 +230,9 @@ jobs: # Make executable, since artifact download doesn't preserve this chmod +x ./ruff ${{ steps.ruff-target.outputs.download-path }}/ruff + # Set pipefail to avoid hiding errors with tee + set -eo pipefail + ruff-ecosystem format ./ruff ${{ steps.ruff-target.outputs.download-path }}/ruff --cache ./checkouts --output-format markdown | tee ecosystem-result-format cat ecosystem-result-format > $GITHUB_STEP_SUMMARY