Skip to content

Commit 0f9a88c

Browse files
committed
Update references
1 parent c84d34f commit 0f9a88c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/artifacts.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
run_id: context.payload.workflow_run.id
2323
});
2424
25-
const artifactUrl = artifacts[0].archive_download_url;
25+
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;
2630
const commentBody = `<!-- build-artifact-comment -->\n📦 Docs artifacts are ready: ${artifactUrl}`;
2731
2832
const comments = await github.rest.issues.listComments({

0 commit comments

Comments
 (0)