Open pstovik opened 1 year ago
We are getting the same behaviour when trying to deploy a new env without any free slots available. Our workaround for pipelines is a shell script that greps the output for a keyword:
swa deploy -O build/your-app --env "full_env" 2>&1 | tee run.log
if grep -q BadRequest run.log; then exit 1; else exit 0; fi
the always 0 exit code makes it really hard to use this in any CI/CD scenario. I want to fail my GitHub Actions workflow if deploy fails, but since the swa
exit code is is 0, GitHub Actions assumes it succeeded (as will most/all CI systems).
yea it is anoying. We run into this from first try because 1st we thought "nice that was easy" but then "oh no, it errors but it does not fail".
It needs to return an error code, else we need to look into the job everytime.
Describe the bug There is an upload failure, but CLI returns 0 exit code.
To Reproduce Steps to reproduce the behavior:
Expected behavior Have non-zero exit code, to get failures in pipelines
Screenshots![2023-03-08 non-zero](https://user-images.githubusercontent.com/19603788/223728885-5dfe4521-10db-4ecb-b46f-20a0e5632c07.png)
Desktop (please complete the following information):