Skip to content

Commit 0907061

Browse files
committed
fix: Update mdbook-mermaid installation to use dynamic version
The workflow was failing because it was trying to download v0.16.0 but the latest release is v0.15.0. Changed to dynamically fetch the latest version from GitHub API to make it future-proof.
1 parent dfb02b8 commit 0907061

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030

3131
- name: Install mdbook-mermaid
3232
run: |
33-
curl -sSL https://github.com/badboy/mdbook-mermaid/releases/latest/download/mdbook-mermaid-v0.16.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz
33+
VERSION=$(curl -s https://api.github.com/repos/badboy/mdbook-mermaid/releases/latest | grep tag_name | cut -d '"' -f 4)
34+
curl -sSL "https://github.com/badboy/mdbook-mermaid/releases/download/${VERSION}/mdbook-mermaid-${VERSION}-x86_64-unknown-linux-gnu.tar.gz" | tar -xz
3435
sudo mv mdbook-mermaid /usr/local/bin/
3536
mdbook-mermaid install .
3637

0 commit comments

Comments
 (0)