mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-09 02:47:29 +02:00
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:
parent
16b9f60a21
commit
596bbf91b4
1 changed files with 3 additions and 1 deletions
4
.github/workflows/download-link-on-pr.yml
vendored
4
.github/workflows/download-link-on-pr.yml
vendored
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue