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 eventual consistency issue with release API lookup
rcourtman88c7bf646195
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 6ea246c544..2922fb0dd1 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -377,13 +377,47 @@ jobs:# The validation workflow needs the numeric ID for REST API calls# Note: /releases/tags/{tag} endpoint doesn't work for draft releases,# so we list all releases and filter by tag_name- RELEASE_JSON=$(gh api "repos/${{ github.repository }}/releases" | jq ".[] | select(.tag_name == \"${TAG}\")")+ # The releases endpoint is eventually consistent, so retry until the release appears+ echo "Waiting for release to appear in GitHub API..."+ MAX_ATTEMPTS=10+ ATTEMPT=1+ RELEASE_JSON=""++ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do+ echo "Attempt $ATTEMPT/$MAX_ATTEMPTS: Looking for release ${TAG}..."+ RELEASE_JSON=$(gh api "repos/${{ github.repository }}/releases" --paginate | jq ".[] | select(.tag_name == \"${TAG}\")")++ if [ -n "$RELEASE_JSON" ]; then+ echo "✓ Found release in API"+ break+ fi++ if [ $ATTEMPT -lt $MAX_ATTEMPTS ]; then+ echo "Release not indexed yet, waiting 2 seconds..."+ sleep 2+ fi++ ATTEMPT=$((ATTEMPT + 1))+ done++ if [ -z "$RELEASE_JSON" ]; then+ echo "::error::Failed to find release ${TAG} in API after $MAX_ATTEMPTS attempts"+ exit 1+ fi+RELEASE_ID=$(echo "$RELEASE_JSON" | jq -r '.id')+ if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = "null" ]; then+ echo "::error::Failed to extract release ID from API response"+ exit 1+ fi+echo "release_url=$(echo "$RELEASE_JSON" | jq -r '.html_url')" >> $GITHUB_OUTPUTecho "release_id=${RELEASE_ID}" >> $GITHUB_OUTPUTecho "tag=${TAG}" >> $GITHUB_OUTPUT+ echo "✓ Release ID: ${RELEASE_ID}"+- name: Upload checksums.txtenv:GH_TOKEN: ${{ github.token }}