openai/openai-java

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.2.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

bin/check-release-environment

37lines · modeblame

11c62f22Stainless Bot1 years ago1#!/usr/bin/env bash
2
3errors=()
4
c66f7258stainless-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
11c62f22Stainless Bot1 years ago9if [ -z "${SONATYPE_USERNAME}" ]; then
10errors+=("The OPENAI_SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
11fi
12
13if [ -z "${SONATYPE_PASSWORD}" ]; then
14errors+=("The OPENAI_SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
15fi
16
17if [ -z "${GPG_SIGNING_KEY}" ]; then
18errors+=("The OPENAI_SONATYPE_GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
19fi
20
21if [ -z "${GPG_SIGNING_PASSWORD}" ]; then
22errors+=("The OPENAI_SONATYPE_GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
23fi
24
25lenErrors=${#errors[@]}
26
27if [[ lenErrors -gt 0 ]]; then
28echo -e "Found the following errors in the release environment:\n"
29
30for error in "${errors[@]}"; do
31echo -e "- $error\n"
32done
33
34exit 1
35fi
36
37echo "The environment is ready to push releases!"