You've already forked comprehensive-rust
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:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -121,6 +121,9 @@ jobs:
|
||||
matrix:
|
||||
language: ${{ fromJSON(needs.find-languages.outputs.languages) }}
|
||||
fail-fast: false
|
||||
env:
|
||||
# Opt-in for checking links in translations - add the language below.
|
||||
LINK_CHECKED_LANGUAGES: '["en", ]'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -149,8 +152,7 @@ jobs:
|
||||
msgfmt -o /dev/null --statistics po/messages.pot
|
||||
|
||||
- name: Install mdbook-linkcheck
|
||||
# Opt-in for checking links in translations - add the language below.
|
||||
if: contains(fromJSON('["en", ]'), matrix.language)
|
||||
if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
|
||||
run: cargo install mdbook-linkcheck --locked --version 0.7.7
|
||||
|
||||
- name: Build ${{ matrix.language }} translation
|
||||
|
Reference in New Issue
Block a user