openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.26.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

bin/check-release-environment

25lines · modeblame

e9c26d1eStainless Bot2 years ago1#!/usr/bin/env bash
2
3errors=()
4
217f6d17stainless-app[bot]1 years ago5if [ -z "${STAINLESS_API_KEY}" ]; then
6errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
7fi
8
e9c26d1eStainless Bot2 years ago9if [ -z "${PYPI_TOKEN}" ]; then
18e0b36astainless-app[bot]1 years ago10errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
e9c26d1eStainless Bot2 years ago11fi
12
d63eac7fStainless Bot2 years ago13lenErrors=${#errors[@]}
e9c26d1eStainless Bot2 years ago14
d63eac7fStainless Bot2 years ago15if [[ lenErrors -gt 0 ]]; then
e9c26d1eStainless Bot2 years ago16echo -e "Found the following errors in the release environment:\n"
17
18for error in "${errors[@]}"; do
19echo -e "- $error\n"
20done
21
22exit 1
23fi
24
25echo "The environment is ready to push releases!"