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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: Handle 404 response in release existence check
rcourtman9bd7e31843ee
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.ymlindex 1bcca0ad09..9087f7607b 100644--- a/.github/workflows/create-release.yml+++ b/.github/workflows/create-release.yml@@ -406,10 +406,11 @@ jobs:IS_PRERELEASE="${{ needs.extract_version.outputs.is_prerelease }}"# Check if a release already exists for this tag+ # Note: gh api returns JSON error on 404, so check for valid release IDEXISTING_RELEASE=$(gh api "repos/${{ github.repository }}/releases/tags/${TAG}" 2>/dev/null || echo "")+ RELEASE_ID=$(echo "$EXISTING_RELEASE" | jq -r '.id // empty')- if [ -n "$EXISTING_RELEASE" ]; then- RELEASE_ID=$(echo "$EXISTING_RELEASE" | jq -r '.id')+ if [ -n "$RELEASE_ID" ]; thenRELEASE_URL=$(echo "$EXISTING_RELEASE" | jq -r '.html_url')IS_DRAFT=$(echo "$EXISTING_RELEASE" | jq -r '.draft')