mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-30 12:30:17 +00:00
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
c50869023d
commit
8c5599db3b
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…
Add table
Add a link
Reference in a new issue