Skip to content

Commit

Permalink
github/workflows: sort artifacts in comment by name
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Feb 25, 2024
1 parent 3fced81 commit ee099ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
}
let body = `Download the artifacts for this pull request:\n\n<details><summary>Windows</summary>\n`;
for (const art of artifacts) {
for (const art of artifacts.toSorted((a, b) => a.name.localeCompare(b.name)) {
const art_link = `https://github.com/${owner}/${repo}/actions/runs/${run_id}/artifacts/${art.id}`;
if (art.name.includes('w64')) {
body += `\n* [${art.name}](${art_link})`;
}
}
body += `\n</details>\n\n<details><summary>macOS</summary>\n`;
for (const art of artifacts) {
for (const art of artifacts.toSorted((a, b) => a.name.localeCompare(b.name)) {
const art_link = `https://github.com/${owner}/${repo}/actions/runs/${run_id}/artifacts/${art.id}`;
if (art.name.includes('macos')) {
body += `\n* [${art.name}](${art_link})`;
Expand Down

0 comments on commit ee099ca

Please sign in to comment.