diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index c8d26b90d9fcb..109b212dedb83 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -39,14 +39,14 @@ jobs: } let body = `Download the artifacts for this pull request:\n\n
Windows\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
\n\n
macOS\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})`;