1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-07 15:02:22 +02:00

Move the link-checked languages to job env

This commit is contained in:
Jonathan Daniel
2024-07-23 21:06:33 +03:00
parent ff03e71215
commit 10e2159d5c

View File

@ -121,6 +121,9 @@ jobs:
matrix: matrix:
language: ${{ fromJSON(needs.find-languages.outputs.languages) }} language: ${{ fromJSON(needs.find-languages.outputs.languages) }}
fail-fast: false fail-fast: false
env:
# Opt-in for checking links in translations - add the language below.
LINK_CHECKED_LANGUAGES: '["en", ]'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -149,8 +152,7 @@ jobs:
msgfmt -o /dev/null --statistics po/messages.pot msgfmt -o /dev/null --statistics po/messages.pot
- name: Install mdbook-linkcheck - name: Install mdbook-linkcheck
# Opt-in for checking links in translations - add the language below. if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
if: contains(fromJSON('["en", ]'), matrix.language)
run: cargo install mdbook-linkcheck --locked --version 0.7.7 run: cargo install mdbook-linkcheck --locked --version 0.7.7
- name: Build ${{ matrix.language }} translation - name: Build ${{ matrix.language }} translation