Repository navigation
Failed API calls reported a bare curl exit code and threw away the server's
explanation, which was the one thing you needed.
Before
curl: (22) The requested URL returned error: 400
After
::error::SimpleOTA API returned HTTP 400: cannot pause deployment in state 'draft'
Every request used curl --fail-with-body inside a command substitution under
set -e. On an HTTP error curl writes the body to stdout and exits non-zero,
so the step died before anything read what it had just captured. Requests now
go through a small helper that keeps the status and the body apart, and fails
the step with the detail message. Transport failures are reported separately
from HTTP failures.
Applies to all four actions. Schema validation errors (422) are handled too,
where detail is a list rather than a string.
CI now exercises all four actions against a live project, rather than upload
alone as before.
Upgrading
No input or output changed, so this is a tag move. v1 points here. Pin
@v1.0.3 if you pin exactly.
Full Changelog: v1.0.2...v1.0.3