Skip to content

Commit 1d2b1f0

Browse files
committed
Use env var for MDBOOK_VERSION
1 parent 2d482e2 commit 1d2b1f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22
on: [push, pull_request]
33

4+
env:
5+
MDBOOK_VERSION: 0.4.40
6+
47
jobs:
58
test:
69
name: Test
@@ -17,7 +20,7 @@ jobs:
1720
- name: Install mdbook
1821
run: |
1922
mkdir bin
20-
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.7/mdbook-v0.4.7-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
23+
curl -sSL 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=bin
2124
echo "$(pwd)/bin" >> $GITHUB_PATH
2225
- name: Report versions
2326
run: |

0 commit comments

Comments
 (0)