Skip to content

Commit

Permalink
ci: update workflows (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsan authored Oct 3, 2023
1 parent 3a82772 commit 675591b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions .github/workflows/install-mdbook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 675591b

Please sign in to comment.