Skip to content

Commit 35b9351

Browse files
committed
Use a variable for the mdbook version.
1 parent ec3bf45 commit 35b9351

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: .github/workflows/docs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ jobs:
1212
permissions:
1313
contents: write # for Git to git push
1414
runs-on: ubuntu-latest
15+
env:
16+
MDBOOK_VERSION: 0.4.28
1517
steps:
1618
- uses: actions/checkout@v3
1719
with:
1820
fetch-depth: 0
1921
- name: Install mdbook
2022
run: |
2123
mkdir mdbook
22-
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.28/mdbook-v0.4.28-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
24+
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
2325
echo `pwd`/mdbook >> $GITHUB_PATH
2426
- name: Deploy docs
2527
run: |

0 commit comments

Comments
 (0)