Skip to content

Commit

Permalink
github/workflows: link macOS artifacts in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Akemi committed Feb 23, 2024
1 parent 7454edc commit 7c0a46d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 7c0a46d

Please sign in to comment.