diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 868834377..ed836d09f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -23,17 +23,19 @@ jobs: - uses: actions/checkout@v4 - name: Install mdBook run: | - tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') + set -xeu + tag=$(curl -f 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz" mkdir mdbook - curl -sSL $url | tar -xz --directory=./mdbook + curl -sSLf $url | tar -xz --directory=./mdbook echo `pwd`/mdbook >> $GITHUB_PATH - name: Install mdbook-mermaid run: | - tag=$(curl 'https://api.github.com/repos/badboy/mdbook-mermaid/releases/latest' | jq -r '.tag_name') + set -xeu + tag=$(curl -f 'https://api.github.com/repos/badboy/mdbook-mermaid/releases/latest' | jq -r '.tag_name') url="https://github.com/badboy/mdbook-mermaid/releases/download/${tag}/mdbook-mermaid-${tag}-x86_64-unknown-linux-gnu.tar.gz" mkdir mdbook-mermaid - curl -sSL $url | tar -xz --directory=./mdbook-mermaid + curl -sSLf $url | tar -xz --directory=./mdbook-mermaid echo `pwd`/mdbook-mermaid >> $GITHUB_PATH - name: Setup Pages id: pages