Skip to content

Commit b07db61

Browse files
committed
fix
Signed-off-by: Anas Nashif <[email protected]>
1 parent f3bdd2b commit b07db61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/twister.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,22 +245,22 @@ jobs:
245245
comment_mode: off
246246

247247
- name: Check out source code
248-
if: failure()
248+
if: needs.twister-build.result == 'failure'
249249
uses: actions/checkout@v4
250250
with:
251251
ref: ${{ github.event.pull_request.head.sha }}
252252
fetch-depth: 0
253253
persist-credentials: false
254254

255255
- name: Analyze Twister Reports
256-
if: failure()
256+
if: needs.twister-build.result == 'failure'
257257
run: |
258258
./scripts/ci/twister_report_analyzer.py artifacts/*/*/twister.json --long-summary --platforms --output-md errors.md
259259
echo '### Error Summary! 🚀' >> $GITHUB_STEP_SUMMARY
260260
cat errors.md >> $GITHUB_STEP_SUMMARY
261261
262262
- name: Upload Twister Analysis Results
263-
if: failure()
263+
if: needs.twister-build.result == 'failure'
264264
uses: actions/upload-artifact@v4
265265
with:
266266
name: Twister Analysis Results

0 commit comments

Comments
 (0)