File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ jobs:
1616 steps :
1717 - uses : actions/checkout@v4
1818
19- - name : Cache cargo registry
19+ - name : Cache cargo
2020 uses : actions/cache@v4
2121 with :
2222 path : |
2323 ~/.cargo/bin/
2424 ~/.cargo/registry/index/
2525 ~/.cargo/registry/cache/
2626 ~/.cargo/git/db/
27- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
27+ key : ${{ runner.os }}-cargo-mdbook-pandoc-v1
2828 restore-keys : |
29- ${{ runner.os }}-cargo-
29+ ${{ runner.os }}-cargo-mdbook-pandoc-
3030
3131 - name : Install mdbook
3232 uses : peaceiris/actions-mdbook@v2
4949
5050 - name : Install mdbook-pandoc
5151 run : |
52- cargo install mdbook-pandoc
52+ if ! command -v mdbook-pandoc &> /dev/null; then
53+ cargo install mdbook-pandoc
54+ else
55+ echo "mdbook-pandoc already installed"
56+ fi
5357
5458 - name : Build Book
5559 run : mdbook build
You can’t perform that action at this time.
0 commit comments