From 91fb9c34463e8d77b31c6189605397f9006f154f Mon Sep 17 00:00:00 2001 From: Trigus42 <59501676+Trigus42@users.noreply.github.com> Date: Sat, 19 Oct 2024 17:22:28 +0200 Subject: [PATCH] Docs workflow: Set working directory after checkout --- .github/workflows/docs.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c05c8ffb..a3b40925 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,10 +27,6 @@ jobs: build-docs: runs-on: ubuntu-latest - defaults: - run: - working-directory: docs - steps: - name: Print inputs if: github.event_name == 'workflow_dispatch' @@ -50,14 +46,17 @@ jobs: cache: 'pip' - run: pip install -r requirements.txt + working-directory: docs - name: Build Docs and Capture Warnings id: build_docs + working-directory: docs run: | mkdocs build 2>&1 | tee mkdocs-output.log - name: Annotate Warnings and Errors if: always() && steps.build_docs.outcome != 'skipped' + working-directory: docs run: | warnings=$(grep -i 'WARNING' mkdocs-output.log || true) errors=$(grep -i 'ERROR' mkdocs-output.log || true) @@ -81,4 +80,5 @@ jobs: - name: Deploy to GitHub Pages if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true' + working-directory: docs run: mkdocs gh-deploy --force