main
 1name: Release Doctor
 2on:
 3  push:
 4    branches:
 5      - main
 6  workflow_dispatch:
 7
 8jobs:
 9  release_doctor:
10    name: release doctor
11    runs-on: ubuntu-latest
12    environment: publish
13    if: github.repository == 'openai/openai-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
14
15    steps:
16      - uses: actions/checkout@v4
17
18      - name: Check release environment
19        run: |
20          bash ./bin/check-release-environment
21        env:
22          STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
23          PYPI_TOKEN: ${{ secrets.OPENAI_PYPI_TOKEN || secrets.PYPI_TOKEN }}