ci: Use strict mkdocs builds on PR previews (#2685)

Signed-off-by: Mare Polaris <15004290+ph00lt0@users.noreply.github.com>
Signed-off-by: Daniel Gray <dngray@privacyguides.org>
This commit is contained in:
Jonah Aragon 2024-08-02 14:01:38 +00:00 committed by Daniel Gray
parent 9d13fafa89
commit 9ad1c6450a
No known key found for this signature in database
GPG Key ID: 41911F722B0F9AE3
2 changed files with 10 additions and 0 deletions

View File

@ -69,6 +69,7 @@ jobs:
lang: en
continue-on-error: false
privileged: ${{ fromJSON(needs.metadata.outputs.privileged) }}
strict: true
build_i18n:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:build i18n') }}
@ -84,6 +85,7 @@ jobs:
lang: ${{ matrix.lang }}
continue-on-error: true
privileged: ${{ fromJSON(needs.metadata.outputs.privileged) }}
strict: true
combine_build:
needs: [build_english, build_i18n]

View File

@ -24,6 +24,9 @@ on:
privileged:
type: boolean
default: true
strict:
type: boolean
default: false
permissions:
contents: read
@ -61,6 +64,11 @@ jobs:
echo "EXTRA_FLAGS=""$EXTRA_FLAGS" --offline""
} >> "$GITHUB_ENV"
- name: Set Metadata for Strict Mode
if: inputs.strict
run: |
echo "EXTRA_FLAGS=""$EXTRA_FLAGS" --cmd_flags=--strict"" >> "$GITHUB_ENV"
- name: Download Repository
uses: actions/checkout@v4
with: