From 637e190e76f952a322d6c5d09a11fcddb4b0fc77 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 25 Jul 2023 13:11:37 +0100 Subject: [PATCH] Upload build reports if and only if build has failed Closes gh-36558 --- .github/workflows/build-pull-request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index ae507b9da4..d37dc66656 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -37,6 +37,7 @@ jobs: - name: Upload build reports uses: actions/upload-artifact@v3 + if: failure() with: name: build-reports path: '**/build/reports/'