Open aymericbeaumet opened 1 year ago
Currently, this action only supports creating a new release or overwriting an existing release (https://github.com/taiki-e/create-gh-release-action/issues/5), but I'm okay with adding support for updating an existing release.
That said, the following single command should probably be enough to do this:
- run: gh release edit "${GITHUB_REF#refs/tags/}" --draft=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
See also GitHub CLI docs.
I've tried your solution with the GitHub CLI, and it worked like a charm. Thanks!
I think adding support for updating an existing release would make sense to keep things abstracted under the same GitHub actions. But I would not consider it a high priority.
I'm trying to implement the following workflow:
I've tried the following, but the draft release is overriden:
Do you have any suggestion as to how to approach this draft -> publish promotion?