# This GitHub Actions workflow was auto-generated by the `rdme` cli on 2023-12-19T05:58:13.568Z # You can view our full documentation here: https://docs.readme.com/docs/rdme name: ReadMe GitHub Action (OpenAPI) 🦉 on: push: branches: # This workflow will run every time you push code to the following branch: `main` # Check out GitHub's docs for more info on configuring this: # https://docs.github.com/actions/using-workflows/events-that-trigger-workflows - main jobs: rdme-openapi: runs-on: ubuntu-latest if: github.repository == 'cpacker/MemGPT' # TODO: if the repo org ever changes, this must be updated steps: - name: Check out repo 📚 uses: actions/checkout@v4 - name: "Setup Python, Poetry and Dependencies" uses: packetcoders/action-setup-cache-python-poetry@main with: python-version: "3.11" poetry-version: "1.7.1" install-args: "--all-extras" - name: Generate openapi.json file run: | poetry run memgpt server & CMD_PID=$! sleep 5 # Wait for 5 seconds kill -SIGINT $CMD_PID - name: Run `openapi` command 🚀 uses: readmeio/rdme@v8 with: rdme: openapi openapi.json --key=${{ secrets.README_API_KEY }} --id=6581305097523b004eedfd16