You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core.setFailed(`Error: Not able to find artifact with name ${artifactName}`);
65
+
return core.setFailed(`Error: Not able to find artifact with name ${artifactName}`);
65
66
}
66
-
else {
67
-
const latestArtifact = filteredArtifacts.sort((a, b) => new Date(b.created_at) - new Date(a.created_at))[0];
68
-
console.log(`Success! Found the latest artifact with name ${artifactName}, with artifact id ${latestArtifact.id} | workflow id ${latestArtifact.workflow_run.id}`);
let download = await github.rest.actions.downloadArtifact({
73
-
owner: owner,
74
-
repo: repo,
75
-
artifact_id: latestArtifact.id,
76
-
archive_format: 'zip',
77
-
});
68
+
const latestArtifact = filteredArtifacts.sort((a, b) => new Date(b.created_at) - new Date(a.created_at))[0];
69
+
console.log(`Success! Found the latest artifact with name ${artifactName}, with artifact id ${latestArtifact.id} | workflow id ${latestArtifact.workflow_run.id}`);
0 commit comments