From 45472ed69a48ae2651ec02e07224f374d6baf278 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 8 Feb 2025 17:49:24 -0500 Subject: [PATCH] fix --- .github/workflows/twister.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/twister.yaml b/.github/workflows/twister.yaml index f85646f2704..2147780a4db 100644 --- a/.github/workflows/twister.yaml +++ b/.github/workflows/twister.yaml @@ -245,7 +245,7 @@ jobs: comment_mode: off - name: Check out source code - if: failure() + if: needs.twister-build.status == 'failure' uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} @@ -253,14 +253,14 @@ jobs: persist-credentials: false - name: Analyze Twister Reports - if: failure() + if: needs.twister-build.status == 'failure' run: | ./scripts/ci/twister_report_analyzer.py artifacts/*/*/twister.json --long-summary --platforms --output-md errors.md echo '### Error Summary! 🚀' >> $GITHUB_STEP_SUMMARY cat errors.md >> $GITHUB_STEP_SUMMARY - name: Upload Twister Analysis Results - if: failure() + if: needs.twister-build.status == 'failure' uses: actions/upload-artifact@v4 with: name: Twister Analysis Results