Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Use `core.setFailed` instead of throw for missing artifacts (#69897)

Nemanja Glumac2e3efef9789e
diff --git a/.github/actions/fetch-artifact/action.yml b/.github/actions/fetch-artifact/action.yml
index 8b5d00937d4..dfbe47f322e 100644
--- a/.github/actions/fetch-artifact/action.yml
+++ b/.github/actions/fetch-artifact/action.yml
@@ -45,7 +45,8 @@ runs:
});
if (!artifacts.data?.artifacts?.[0]?.id) {
- throw new Error(`No artifacts found for ${artifactName}`);
+ core.setFailed(`No artifacts found for ${artifactName}`);
+ return;
}
const artifact_id = artifacts.data.artifacts[0].id;