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.
This commit is contained in:
Deluan 2026-09-05 13:50:44 -04:00
commit 596bbf91b4

View file

@ -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`;