From 6222bf7c5cc5e1d1c567975c4225cf10c7b8ba77 Mon Sep 17 00:00:00 2001 From: Rick Peters Date: Wed, 30 Sep 2026 12:35:46 +0200 Subject: [PATCH] fix(ci): wait for the mirror to drop the old tag by the tag list (the single-tag URL always answers 404 there) --- .github/workflows/iso-1-github-tag.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/iso-1-github-tag.yml b/.github/workflows/iso-1-github-tag.yml index d34ac48..e8fa59c 100644 --- a/.github/workflows/iso-1-github-tag.yml +++ b/.github/workflows/iso-1-github-tag.yml @@ -73,8 +73,9 @@ jobs: # The mirror has to see the tag go (it drops the tag and its release with the ISO); otherwise the new tag is only an # update there and starts no build. if mirror_sync; then + # The tag list, not .../tags/: that URL answers 404 on this server even for tags that exist. for _ in $(seq 36); do - [ "$(curl -s -o /dev/null -w '%{http_code}' "$GITEA_URL/api/v1/repos/$GITEA_REPO/tags/$tag")" = 404 ] && break + curl -s "$GITEA_URL/api/v1/repos/$GITEA_REPO/tags?limit=100" | grep -q "\"name\":\"$tag\"" || break sleep 5 done fi