Исправлен разбор ответа при создании релиза в CI
Some checks failed
Release / release (push) Failing after 6m31s
Some checks failed
Release / release (push) Failing after 6m31s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ae1f806cf5
commit
126ad1d081
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ jobs:
|
|||
-d "${PAYLOAD}" \
|
||||
"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"
|
||||
|
||||
- name: Upload Linux and Windows release files
|
||||
|
|
|
|||
Loading…
Reference in a new issue