diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index f2cc38ff47..61d18389a5 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -88,19 +88,20 @@ jobs: const commands = ${{ steps.snapshot.outputs.snapshots }}.map((snapshot) => { const [package, installer] = snapshot.split(": ") const [, sha] = installer.split(/@(?=[^@]*$)/) - const header = `
${package} (${sha})

` + const header = `${package} (${sha}):
` const content = "\n```sh\n" + installer + "\n```\n" - const footer = `

` - return [header, content, footer].join("\n") + return [header, content].join("\n") }) - const header = `**Good news @${{ github.actor }}, your snapshot has been published!**` - const footer = `You can review the build log [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).` + const header = `**Good news @${{ github.actor }}, your snapshot has been published!**\n\n` + + `You can review the build log [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).` + + const packages = `
Packages:\n\n${commands.join("\n")}\n\n
` await github.rest.issues.updateComment({ comment_id: ${{ steps.comment.outputs.comment-id }}, owner: context.repo.owner, repo: context.repo.repo, - body: `${header}\n\n${commands.join("\n")}\n\n${footer}` + body: `${header}\n\n${packages}` }) - name: Update comment (failure)