Skip Empty Test Result Publishes and Unrelated Labels in Optional Builds (#17602)

This commit is contained in:
HanifKoh authored and GitHub committed 2026-11-17 07:44:59 +08:00
1 parent 9cdaaedad7
commit 5841f9652d
2 files changed
+19 -7

No files matched your search

+2
View File
@@ -291,7 +291,9 @@ jobs:
path: test-results
# Best-effort: a read-only token (e.g. fork PRs) can't write the check, so
# don't let a publish failure fail the run. The test jobs gate correctness.
# Skipped when every build failed: there is nothing to publish.
- name: Publish Test Results
if: ${{ hashFiles('test-results/**/*.xml') != '' }}
continue-on-error: true
uses: EnricoMi/publish-unit-test-result-action@v2
with: