You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
patterns/.github/workflows/install-mdbook/action.yml

30 lines
882 B
YAML

name: Install mdbook and dependencies
description: Install the mdbook with the dependencies we need.
runs:
using: composite
steps:
- name: Read mdbook version from .env
id: mdbook-version
run: |
. ./.env
echo "version=$MDBOOK_VERSION" >> $GITHUB_OUTPUT
shell: bash
- name: Read mdbook-i18n-helpers version from .env
id: mdbook-i18n-helpers-version
run: |
. ./.env
echo "version=$MDBOOK_I18N_HELPERS_VERSION" >> $GITHUB_OUTPUT
shell: bash
- name: Install mdbook
uses: taiki-e/install-action@2afb713f1c297f70eecb9cb904b36612eba3c25e # v2
with:
tool: mdbook@${{ steps.mdbook-version.outputs.version }}
- name: Install i18n-helpers
run: cargo install mdbook-i18n-helpers --locked --version '${{ steps.mdbook-i18n-helpers-version.outputs.version }}'
shell: bash