Skip to content

Commit

Permalink
Update action distribution files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 28, 2024
1 parent aae0b87 commit fd39457
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions upload-release/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50290,17 +50290,18 @@ async function run() {
core.summary
.addHeading('Release Information', 2)
.addHeading('Metadata', 3)
.addDetails('Expand Metadata', `\`\`\`json\n${JSON.stringify(metadata, null, 4)}\n\`\`\``);
.addDetails('Expand Metadata', `\n\n\`\`\`json\n${JSON.stringify(metadata, null, 4)}\n\`\`\`\n\n`);
if (changelog !== '') {
core.summary.addRaw(changelog, true);
}
core.summary
.addHeading(`Downloads (Build #${metadata.number})`, 3)
.addList(Object.keys(metadata.downloads).map(label => {
.addBreak();
for (const label in metadata.downloads) {
const url = new URL(`${metadata.project}/versions/${metadata.version}/builds/${metadata.number}/downloads/${label}`, downloadsApiUrl).href;
return `[${metadata.downloads[label].name}](${url})`;
}))
.write();
core.summary.addRaw(`- [${metadata.downloads[label].name}](${url})`, true);
}
core.summary.addBreak().write();
}
catch (error) {
if (client)
Expand Down

0 comments on commit fd39457

Please sign in to comment.