CI: Arch-Anhang-Teil entgiftet (grep-/Tag-Fallback mit || true); v0.1.6
This commit is contained in:
@ -133,14 +133,14 @@ jobs:
|
||||
}
|
||||
|
||||
code=$(post_release | tail -n1)
|
||||
RID=$(grep -o '"id": *[0-9]*' /tmp/hw-rel-body.json | head -n1 | grep -o '[0-9]*')
|
||||
if [ -z "$RID" ] && [ "$code" != "201" ]; then
|
||||
get_release >/dev/null
|
||||
RID=$(grep -o '"id": *[0-9]*' /tmp/hw-rel-body.json | head -n1 | grep -o '[0-9]*')
|
||||
RID=$(grep -o '"id": *[0-9]*' /tmp/hw-rel-body.json 2>/dev/null | head -n1 | grep -o '[0-9]*' || true)
|
||||
if [ -z "$RID" ]; then
|
||||
echo "POST-Code: $code — Fallback via Tag-Lookup"
|
||||
get_release >/dev/null 2>&1
|
||||
RID=$(grep -o '"id": *[0-9]*' /tmp/hw-rel-body.json 2>/dev/null | head -n1 | grep -o '[0-9]*' || true)
|
||||
fi
|
||||
if [ -z "$RID" ]; then
|
||||
echo "Release-ID konnte nicht ermittelt werden (code=$code)"
|
||||
exit 1
|
||||
echo "Release-ID konnte nicht ermittelt werden (code=$code)"; exit 1
|
||||
fi
|
||||
echo "Release-ID: $RID"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user