Skip to content

Commit

Permalink
chore: validate that all required GitHub Secrets are set
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Nov 17, 2023
1 parent a4bd894 commit 3cb6d41
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/actions/tests/python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,34 @@ runs:
id: checkout
uses: actions/checkout@v4

- name: Verify OPENAI_API_ORGANIZATION
run: |
if [[ -z "${{ secrets.OPENAI_API_ORGANIZATION }}" ]]; then
echo "OPENAI_API_ORGANIZATION is not set" >&2
exit 1
fi
- name: Verify OPENAI_API_KEY
run: |
if [[ -z "${{ secrets.OPENAI_API_KEY }}" ]]; then
echo "OPENAI_API_KEY is not set" >&2
exit 1
fi
- name: Verify PINECONE_API_KEY
run: |
if [[ -z "${{ secrets.PINECONE_API_KEY }}" ]]; then
echo "PINECONE_API_KEY is not set" >&2
exit 1
fi
- name: Verify PINECONE_ENVIRONMENT
run: |
if [[ -z "${{ secrets.PINECONE_ENVIRONMENT }}" ]]; then
echo "PINECONE_ENVIRONMENT is not set" >&2
exit 1
fi
- name: Set up Python
if: steps.file_changes.outputs.files_changed != '' || steps.file_changes.outputs.requirements_changed != ''
uses: actions/setup-python@v4
Expand Down

0 comments on commit 3cb6d41

Please sign in to comment.