From f72c37ff46a1e2e17ce145cb11c338e048ad9c09 Mon Sep 17 00:00:00 2001 From: Zanie Date: Wed, 25 Oct 2023 13:49:56 -0500 Subject: [PATCH] Write results separately then combine --- .github/workflows/ci.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cb3321c0da..d6dd3efc07 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -210,8 +210,8 @@ jobs: # Make executable, since artifact download doesn't preserve this chmod +x ruff ./ruff - ruff-ecosystem check $(which ruff) ./ruff --cache ./checkouts --output-format markdown | tee ecosystem-result - cat ecosystem-result >> $GITHUB_STEP_SUMMARY + ruff-ecosystem check $(which ruff) ./ruff --cache ./checkouts --output-format markdown | tee ecosystem-result-check + cat ecosystem-result-check > $GITHUB_STEP_SUMMARY echo ${{ github.event.number }} > pr-number @@ -221,11 +221,16 @@ jobs: # Make executable, since artifact download doesn't preserve this chmod +x ruff ./ruff - ruff-ecosystem format $(which ruff) ./ruff --cache ./checkouts --output-format markdown | tee ecosystem-result - cat ecosystem-result >> $GITHUB_STEP_SUMMARY + ruff-ecosystem format $(which ruff) ./ruff --cache ./checkouts --output-format markdown | tee ecosystem-result-format + cat ecosystem-result-format > $GITHUB_STEP_SUMMARY echo ${{ github.event.number }} > pr-number + - name: Combine ecosystem check results + # if: ${{ needs.determine_changes.outputs.formatter == 'true' }} TMP + run: | + cat ecosystem-result-check ecosystem-result-format > ecosystem-result + - uses: actions/upload-artifact@v3 name: Upload PR Number with: