Add target_commitish to release API call
Without target_commitish, GitHub creates an untagged release even when the tag exists.
This commit is contained in:
parent
db120a8e9b
commit
9dc7990fbe
1 changed files with 2 additions and 0 deletions
2
.github/workflows/create-release.yml
vendored
2
.github/workflows/create-release.yml
vendored
|
|
@ -428,9 +428,11 @@ jobs:
|
|||
|
||||
# Use GitHub API directly to create release with existing tag
|
||||
# gh release create has issues when tag already exists
|
||||
# Must include target_commitish to link to existing tag
|
||||
RELEASE_JSON=$(gh api "repos/${{ github.repository }}/releases" \
|
||||
-X POST \
|
||||
-F tag_name="${TAG}" \
|
||||
-F target_commitish="${{ github.sha }}" \
|
||||
-F name="Pulse ${TAG}" \
|
||||
-F body="$(cat $NOTES_FILE)" \
|
||||
-F draft=true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue