release: Diagnose beim Release-Lookup (HTTP-Status, Secret-Check)
CI / test (push) Successful in 13m3s
CI / test (push) Successful in 13m3s
This commit is contained in:
@@ -58,11 +58,20 @@ jobs:
|
||||
API="https://git.sithies.de/api/v1/repos/${REPO}/releases"
|
||||
AUTH="Authorization: token ${{ secrets.GITEATOKEN }}"
|
||||
|
||||
REL_ID=$(curl -s "${API}/tags/${TAG}" -H "$AUTH" | jq -r '.id')
|
||||
if [ -z "$REL_ID" ] || [ "$REL_ID" = "null" ]; then
|
||||
echo "ERROR: Kein Release fuer Tag ${TAG} gefunden. Erst Release veroeffentlichen."
|
||||
# Release-Lookup mit Diagnose (privates Repo -> Auth noetig).
|
||||
HTTP=$(curl -s -o /tmp/rel.json -w "%{http_code}" "${API}/tags/${TAG}" -H "$AUTH")
|
||||
REL_ID=$(jq -r '.id // empty' /tmp/rel.json 2>/dev/null || true)
|
||||
if [ -z "$REL_ID" ]; then
|
||||
echo "ERROR: Release-Lookup fehlgeschlagen (HTTP ${HTTP}) fuer Tag '${TAG}'."
|
||||
if [ -z "${{ secrets.GITEATOKEN }}" ]; then
|
||||
echo " -> Secret GITEATOKEN ist in DIESEM Repo NICHT gesetzt."
|
||||
else
|
||||
echo " -> GITEATOKEN ist gesetzt; vermutlich fehlt dem Token der Scope (repository) oder der Tag stimmt nicht."
|
||||
fi
|
||||
echo " Antwort (gekuerzt): $(head -c 300 /tmp/rel.json)"
|
||||
exit 1
|
||||
fi
|
||||
echo "Release ${TAG} gefunden (id ${REL_ID})."
|
||||
|
||||
build_one() {
|
||||
name="$1"; file="$2"; platform="$3"; suffix="$4"
|
||||
|
||||
Reference in New Issue
Block a user