Args: Fix imports and handling of export openapi

The api-servers arg is passed when running subcommands, so use that
instead of replicating the arg again.

Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
kingbri 2025-02-10 23:19:44 -05:00
parent 30ab8e04b9
commit 153dac496c
2 changed files with 2 additions and 3 deletions

View file

@ -48,8 +48,8 @@ jobs:
npm install @redocly/cli -g
- name: Export OpenAPI docs
run: |
python main.py export-openapi --export-path "openapi-kobold.json"
python main.py export-openapi --export-path "openapi-oai.json"
python main.py export-openapi --export-path "openapi-kobold.json" --api-servers kobold
python main.py export-openapi --export-path "openapi-oai.json" --api-servers oai
- name: Build and store Redocly site
run: |
mkdir static

View file

@ -272,7 +272,6 @@ if __name__ == "__main__":
# Assume all dependencies are installed from here
try:
from common.args import convert_args_to_dict
from main import entrypoint
# Create a config if it doesn't exist