Skip to content

Commit 69333ed

Browse files
authored
Merge pull request #240 from JohnTitor/gha
Tweak GHA config
2 parents 9addcf7 + e574ee0 commit 69333ed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: Test
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@master
9+
- uses: actions/checkout@v2
1010
- name: Update rustup
1111
run: rustup self update
1212
- name: Install Rust
@@ -15,10 +15,12 @@ jobs:
1515
rustup toolchain install nightly -c rust-docs
1616
rustup default nightly
1717
- name: Install mdbook
18+
env:
19+
MDBOOK_VER: v0.4.3
1820
run: |
1921
mkdir bin
20-
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.3.5/mdbook-v0.3.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
21-
echo "##[add-path]$(pwd)/bin"
22+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/${{ env.MDBOOK_VER }}/mdbook-${{ env.MDBOOK_VER }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
23+
echo "$(pwd)/bin" >> $GITHUB_PATH
2224
- name: Report versions
2325
run: |
2426
rustup --version

0 commit comments

Comments
 (0)