Open bryant-finney opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.
Same issue here. Workaround:
glab ci lint | grep Valid! && echo continue-with-other-commands
Description
When using
glab
client to lint my CI configuration, I expect the command's exit code to reflect the linting results. However, the command returns a0
exit code, even on linting failure.Expected Behavior vs Actual Behavior and Steps to Reproduce
Related issue: #911
Possible Fix
curl
andhttpie
both provide flags to return a non-zero exit code based on the HTTP status:--fail
and--check-status
, respectively. Because this would maintain backwards compatibility, implementing a similar optional argument might make the most sense.Environment