Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Add target_commitish to release API call

rcourtman8c5599db3bd5
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index b50a6acf76..52912e3f86 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -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)