From 55b3997cf7380e56c7defbedf816cc4ea9e3dd4e Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Tue, 5 Dec 2023 16:54:07 +0200 Subject: [PATCH] [CI] Don't try to upload stats when native-tests are not ran Prevents the upload step from failing and creating extra noise. --- .github/workflows/base.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index 6490aaf530ec..475f4aee7be0 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -675,7 +675,7 @@ jobs: native-tests-stats-upload: name: Upload build stats to collector - if: ${{ always() && inputs.build-stats-tag != 'null' && github.event_name != 'pull_request' }} + if: ${{ always() && inputs.build-stats-tag != 'null' && github.event_name != 'pull_request' && needs.native-tests.result != 'skipped' && needs.native-tests.result != 'cancelled' }} needs: - native-tests - get-test-matrix