github/workflows: link macOS artifacts in comments

This commit is contained in:
der richter 2024-02-21 22:26:10 +01:00
parent 0ed023653a
commit 555bdf78b2
1 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,13 @@ jobs:
body += `\n* [${art.name}](${art_link})`;
}
}
body += `\n</details>\n\n<details><summary>macOS</summary>\n`;
for (const art of artifacts) {
const art_link = `https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip`;
if (art.name.includes('macos')) {
body += `\n* [${art.name}](${art_link})`;
}
}
body += `\n</details>`;
const { data: comments } = await github.rest.issues.listComments({ repo, owner, issue_number });