From d80af3968fcee26f1e450db7b8adf382b50173b3 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Thu, 11 Apr 2024 12:29:00 -0500 Subject: [PATCH] Fix broken PR builds --- .github/workflows/build.yml | 9 +++++++-- README.md | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f53bf6c9..3321a09b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,11 +93,16 @@ jobs: cp -rl modules/repo-i18n/includes . cp -rl modules/repo-i18n/theme . - - name: Install Python + - name: Install Python (pipenv) + if: inputs.privileged uses: actions/setup-python@v5 with: cache: "pipenv" + - name: Install Python (no pipenv) + if: ${{ !inputs.privileged }} + uses: actions/setup-python@v5 + - name: Restore Privacy Plugin Cache uses: actions/cache/restore@v4.0.2 id: privacy_cache_restore @@ -146,9 +151,9 @@ jobs: run: | pip install mkdocs-material sudo apt install pngquant + echo "EXTRA_FLAGS=""$EXTRA_FLAGS" --cmd=mkdocs"" >> "$GITHUB_ENV" - name: Build Website - if: inputs.privileged run: | eval ./run.sh --build --lang=${{ inputs.lang }} "$EXTRA_FLAGS" diff --git a/README.md b/README.md index 6ba9f063..1a2b9e20 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ Committing to this repository requires [signing your commits](https://docs.githu ### With `mkdocs-material` 1. Install required packages: `pip install mkdocs-material` -2. Run a local preview of the English site: `./run.sh` +2. Run a local preview of the English site: `./run.sh --cmd=mkdocs` ### With `mkdocs-material-insiders`