mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-05-09 17:55:24 -04:00
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:
parent
9d13fafa89
commit
9ad1c6450a
2 changed files with 10 additions and 0 deletions
2
.github/workflows/build-pr.yml
vendored
2
.github/workflows/build-pr.yml
vendored
|
@ -69,6 +69,7 @@ jobs:
|
||||||
lang: en
|
lang: en
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
privileged: ${{ fromJSON(needs.metadata.outputs.privileged) }}
|
privileged: ${{ fromJSON(needs.metadata.outputs.privileged) }}
|
||||||
|
strict: true
|
||||||
|
|
||||||
build_i18n:
|
build_i18n:
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:build i18n') }}
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:build i18n') }}
|
||||||
|
@ -84,6 +85,7 @@ jobs:
|
||||||
lang: ${{ matrix.lang }}
|
lang: ${{ matrix.lang }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
privileged: ${{ fromJSON(needs.metadata.outputs.privileged) }}
|
privileged: ${{ fromJSON(needs.metadata.outputs.privileged) }}
|
||||||
|
strict: true
|
||||||
|
|
||||||
combine_build:
|
combine_build:
|
||||||
needs: [build_english, build_i18n]
|
needs: [build_english, build_i18n]
|
||||||
|
|
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -24,6 +24,9 @@ on:
|
||||||
privileged:
|
privileged:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
strict:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -61,6 +64,11 @@ jobs:
|
||||||
echo "EXTRA_FLAGS=""$EXTRA_FLAGS" --offline""
|
echo "EXTRA_FLAGS=""$EXTRA_FLAGS" --offline""
|
||||||
} >> "$GITHUB_ENV"
|
} >> "$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
|
- name: Download Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue