From d38d01df5d4654bff2cf5b1b4cc4495bcc66c3ba Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Sun, 8 Sep 2024 05:08:00 +0800 Subject: chore(workflow): update build-api workflow to add reason input and sync pdm --- .github/workflows/build-api.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 74305aa..52b0e19 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -5,6 +5,11 @@ on: tags: - "v*" workflow_dispatch: + inputs: + reason: + type: string + required: true + description: 'The reason to manually trigger api doc build' jobs: update-api-doc: @@ -20,10 +25,14 @@ jobs: - uses: pdm-project/setup-pdm@v4 name: Setup PDM with: - python-version: 3.9 - cache: true + python-version: 3.10 + # cache: true + + - name: sync pdm.lock + run: pdm sync + - name: Install dependencies - run: pdm install + run: pdm install -dG docs - name: Remove API Doc run: rm -rf docs/source/api -- cgit v1.2.3-70-g09d2