From 9ad1c6450a9718b84af868dfdbfacbb6a5fc75c6 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Fri, 2 Aug 2024 14:01:38 +0000 Subject: [PATCH] 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 --- .github/workflows/build-pr.yml | 2 ++ .github/workflows/build.yml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 6838b34e..8d8242b0 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -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] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 993e5b3a..e8e2a4df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: