github-api: fixed returning exit code