From 675591b4ef511d37b003da209dcbbaf7bc4a065c Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:45:54 +0200 Subject: [PATCH] ci: update workflows (#375) --- .env | 4 ++-- .github/workflows/install-mdbook/action.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.env b/.env index 234d3292..6c574267 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -MDBOOK_VERSION=0.4.28 -MDBOOK_I18N_HELPERS_VERSION=0.1.0 +MDBOOK_VERSION=0.4.35 +MDBOOK_I18N_HELPERS_VERSION=0.2.4 diff --git a/.github/workflows/install-mdbook/action.yml b/.github/workflows/install-mdbook/action.yml index e6d46298..e1482c35 100644 --- a/.github/workflows/install-mdbook/action.yml +++ b/.github/workflows/install-mdbook/action.yml @@ -9,21 +9,21 @@ runs: id: mdbook-version run: | . ./.env - echo "::set-output name=MDBOOK_VERSION::${MDBOOK_VERSION}" + echo "version=$MDBOOK_VERSION" >> $GITHUB_OUTPUT shell: bash - name: Read mdbook-i18n-helpers version from .env id: mdbook-i18n-helpers-version run: | . ./.env - echo "::set-output name=MDBOOK_I18N_HELPERS_VERSION::${MDBOOK_I18N_HELPERS_VERSION}" + echo "version=$MDBOOK_I18N_HELPERS_VERSION" >> $GITHUB_OUTPUT shell: bash - # The --locked flag is important for reproducible builds. - name: Install mdbook - run: cargo install mdbook --locked --version '${{ steps.mdbook-version.outputs.MDBOOK_VERSION }}' - shell: bash + 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.MDBOOK_I18N_HELPERS_VERSION }}' + run: cargo install mdbook-i18n-helpers --locked --version '${{ steps.mdbook-i18n-helpers-version.outputs.version }}' shell: bash