Skip to content

Commit 135018e

Browse files
authored
Merge pull request #267 from nt54hamnghi/nt54hamnghi/update-github-action
Update GitHub action to install mdbook-linkcheck2
2 parents e4e4217 + 1cbe7d6 commit 135018e

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ jobs:
1111
name: build and test
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v6
1515
- name: Install Rust
1616
run: rustup update stable && rustup default stable
1717
- name: Install mdbook
18-
uses: taiki-e/install-action@mdbook
19-
- name: Install mdbook-linkcheck
20-
uses: taiki-e/install-action@mdbook-linkcheck
18+
uses: taiki-e/install-action@v2
19+
with:
20+
tool: mdbook
21+
- name: Install mdbook-linkcheck2
22+
uses: taiki-e/install-action@v2
23+
with:
24+
tool: mdbook-linkcheck2
25+
fallback: cargo-install
2126
- run: mdbook build
2227
- run: cargo test --all --manifest-path=./examples/Cargo.toml --target-dir ./target
2328
- uses: actions/upload-pages-artifact@v3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The async book is built with [`mdbook`] ([docs](https://rust-lang.github.io/mdBo
1010

1111
```
1212
cargo install mdbook
13-
cargo install mdbook-linkcheck
13+
cargo install mdbook-linkcheck2
1414
```
1515

1616
[`mdbook`]: https://github.com/rust-lang/mdBook

book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ create-missing = false
99
git-repository-url = "https://github.com/rust-lang/async-book"
1010
site-url = "/async-book/"
1111

12-
[output.linkcheck]
12+
[output.linkcheck2]
1313
follow-web-links = true
1414
traverse-parent-directories = false
1515
exclude = [ 'blog\.cloudflare\.com' ]

0 commit comments

Comments
 (0)