github.updateRelease changes an existing release.
automations/publish-github-release.automation.ts
releaseId. Optional replacements are tagName, targetCommitish, name, Markdown body, draft, prerelease, discussionCategoryName, and makeLatest. GitHub only supports generated notes when creating a release. Returns the release’s id, tag_name, draft, and prerelease state. Publishing a draft or changing prerelease state can emit different release webhook actions. Requires Contents write permission. GitHub also requires Workflows write permission when the target commit changes a file under .github/workflows/ relative to the default branch.