Skip to content

Commit 5032090

Browse files
committed
fix: issue with updating release
1 parent afba2fe commit 5032090

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)