We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c84d34f commit 0f9a88cCopy full SHA for 0f9a88c
.github/workflows/artifacts.yml
@@ -22,7 +22,11 @@ jobs:
22
run_id: context.payload.workflow_run.id
23
});
24
25
- const artifactUrl = artifacts[0].archive_download_url;
+ if (artifacts.data.total_count !== 1) {
26
+ throw new Error('Expected one artifact')
27
+ }
28
+
29
+ const artifactUrl = artifacts.data.artifacts[0].archive_download_url;
30
const commentBody = `<!-- build-artifact-comment -->\n📦 Docs artifacts are ready: ${artifactUrl}`;
31
32
const comments = await github.rest.issues.listComments({
0 commit comments