[misc] Upload the raw test events only when the tests fail

The artifact is only read when a failure needs more than the summary shows,
so a green run does not need to keep it for 14 days.
This commit is contained in:
mlsmaycon
2026-09-12 12:42:30 +00:00
parent 3f2750e8be
commit 889ee8ef92
+2 -2
View File
@@ -498,9 +498,9 @@ jobs:
| go run ./tools/gotestsummary
# The summary trims long outputs; the raw stream keeps every line for
# the failures that need it.
# the failures that need it. A green run has no use for it.
- name: Upload raw test events
if: always()
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
with:
name: management-unit-test-events-${{ matrix.store }}