File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,16 +98,16 @@ jobs:
9898 });
9999
100100 const imageUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/pkgs/container/${context.repo.repo}`;
101- const body = `## Docker Image\n\n` +
101+ const dockerSection = `## Docker Image\n\n` +
102102 `**Published:** ✅\n` +
103103 `**Image:** \`ghcr.io/${context.repo.owner}/${context.repo.repo}:${{ inputs.version }}\`\n` +
104104 `**Latest:** \`ghcr.io/${context.repo.owner}/${context.repo.repo}:latest\`\n\n` +
105105 `Pull: \`docker pull ghcr.io/${context.repo.owner}/${context.repo.repo}:${{ inputs.version }}\`\n\n` +
106106 `[View on GitHub Container Registry](${imageUrl})`;
107107
108- await github.rest.repos.createReleaseComment ({
108+ await github.rest.repos.updateRelease ({
109109 owner: context.repo.owner,
110110 repo: context.repo.repo,
111111 release_id: release.id,
112- body: body
112+ body: release. body + '\n\n---\n\n' + dockerSection
113113 });
You can’t perform that action at this time.
0 commit comments