From d63291a16291dd6c7e844fb7edb85939f964f8d1 Mon Sep 17 00:00:00 2001 From: Niklas Dewally Date: Wed, 2 Oct 2024 16:00:21 +0100 Subject: [PATCH] ci(code-coverage-deploy): only load historical lcov if it exists The code-coverage-deploy workflow was failing, as it was trying to use historical lcov when it did not exist. This patch makes this step conditional on whether historical lcov exists or not. https://github.com/conjure-cp/conjure-oxide/actions/runs/11146109623/job/30977305993 --- .github/workflows/code-coverage-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/code-coverage-deploy.yml b/.github/workflows/code-coverage-deploy.yml index 9c5858ca98..6c5b402dcd 100644 --- a/.github/workflows/code-coverage-deploy.yml +++ b/.github/workflows/code-coverage-deploy.yml @@ -234,6 +234,7 @@ jobs: }) - name: Download the previous lcov.info (historical) file + if: steps.find_artifacts.outputs.result != '[]' uses: actions/download-artifact@v4 with: | name: code-coverage-${{ env.num }}-${{ env.previous_artifact_id }}