From a2840982e53f8c2fae897dc02250e8f806b103af Mon Sep 17 00:00:00 2001 From: DarioGii Date: Wed, 11 Jun 2025 16:58:27 +0100 Subject: [PATCH] ensuring Upload Test Reports is skipped if Check Test Reports Exist fails --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa1581295..3630ed35d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,7 @@ jobs: DISABLE_ADDITIONAL_FEATURES: false - name: Check Test Reports Exist + id: check-reports if: always() run: | missing_reports=() @@ -82,7 +83,7 @@ jobs: echo "All required test report directories are present" - name: Upload Test Reports - if: always() + if: steps.check-reports.outcome == 'success' uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: test-reports-jdk-${{ matrix.jdk-version }}