From 596bbf91b43ae27aeeecddbb15e080b096dfe728 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 5 Sep 2026 13:50:44 -0400 Subject: [PATCH] ci: do not treat an empty artifact list as an error on a PR A pull request that changes nothing reaching a binary now builds nothing, so the download-link workflow finding no artifacts is an expected outcome rather than a problem worth an error annotation. --- .github/workflows/download-link-on-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/download-link-on-pr.yml b/.github/workflows/download-link-on-pr.yml index 80ec18e90..fdfc82e08 100644 --- a/.github/workflows/download-link-on-pr.yml +++ b/.github/workflows/download-link-on-pr.yml @@ -35,8 +35,10 @@ jobs: const {data: {artifacts}} = await github.rest.actions.listWorkflowRunArtifacts({owner, repo, run_id}); const downloadable = artifacts.filter((art) => !art.name.startsWith('octocov-')); + // A PR that changes nothing reaching a binary builds nothing, so an + // empty list is expected rather than a problem. if (!downloadable.length) { - return core.error(`No artifacts found`); + return core.info(`No artifacts found`); } const header = `Download the artifacts for this pull request:`; let body = `${header}\n`;