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.

Fix: let GitHub API create the tag, don't pre-create it

rcourtman1d39a4b02601
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 52912e3f86..945ee059b3 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -407,15 +407,6 @@ jobs:
echo "Release notes content:"
cat "$NOTES_FILE"
- - name: Create git tag
- run: |
- TAG="${{ needs.extract_version.outputs.tag }}"
-
- echo "Creating git tag ${TAG}..."
- git tag "${TAG}" "${{ github.sha }}"
- git push origin "${TAG}"
- echo "✓ Tag ${TAG} created and pushed"
-
- name: Create draft release
id: create_release
env:
@@ -426,9 +417,8 @@ jobs:
echo "Creating draft release for ${TAG}..."
- # 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
+ # GitHub API creates both the tag and release
+ # If tag exists, it creates "untagged" release - so DON'T create tag first
RELEASE_JSON=$(gh api "repos/${{ github.repository }}/releases" \
-X POST \
-F tag_name="${TAG}" \