Исправлен разбор ответа при создании релиза в CI
Some checks failed
Release / release (push) Failing after 6m31s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vodyanoy 2026-11-17 19:35:54 +07:00
parent ae1f806cf5
commit 126ad1d081

View file

@ -108,7 +108,7 @@ jobs:
-d "${PAYLOAD}" \ -d "${PAYLOAD}" \
"https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases") "https://git.vodyanoysh.ru/api/v1/repos/vodyanoy/aero-mail/releases")
RELEASE_ID=$(echo "$RELEASE" | node -e 'let input = ""; process.stdin.on("data", chunk => { input += chunk }); process.stdin.on("end", () => { const release = JSON.parse(input); if (!Number.isSafeInteger(release.id)) throw new Error("Некорректный ID релиза"); console.log(release.id) })') RELEASE_ID=$(printf '%s' "$RELEASE" | node -e 'let input = ""; process.stdin.on("data", chunk => { input += chunk }); process.stdin.on("end", () => { const release = JSON.parse(input); if (!Number.isSafeInteger(release.id)) throw new Error("Некорректный ID релиза"); console.log(release.id) })')
echo "id=${RELEASE_ID}" >> "$GITHUB_OUTPUT" echo "id=${RELEASE_ID}" >> "$GITHUB_OUTPUT"
- name: Upload Linux and Windows release files - name: Upload Linux and Windows release files