openai/openai-java

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.44.4

Branches

Tags

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

Clone

HTTPS

Download ZIP

bin/check-release-environment

33lines · modecode

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