diff --git a/.github/workflows/common/set-up-mdbook/action.yaml b/.github/workflows/common/set-up-mdbook/action.yaml index 24aaa3f6..20e89c91 100644 --- a/.github/workflows/common/set-up-mdbook/action.yaml +++ b/.github/workflows/common/set-up-mdbook/action.yaml @@ -8,14 +8,7 @@ runs: using: "composite" steps: - name: Setup mdBook 📚 - uses: jontze/action-mdbook@0765bef0c7c5792f93bf3ed3d487a0ca32c9da33 - with: - token: ${{ inputs.token }} - mdbook-version: "~0.4.37" # Use a semver compatible string - # Optional Plugins have to be enabled - use-linkcheck: true - linkcheck-version: "~0.7.7" - + run: cargo install mdbook mdbook-linkcheck mdbook-external-links - name: Show mdbook version shell: bash run: mdbook --version diff --git a/.github/workflows/verify-pr.yaml b/.github/workflows/verify-pr.yaml index 0f557ef2..9bb5ea38 100644 --- a/.github/workflows/verify-pr.yaml +++ b/.github/workflows/verify-pr.yaml @@ -24,7 +24,9 @@ jobs: run: npm run lint - name: Set up mdBook 📚 - run: cargo install mdbook mdbook-linkcheck mdbook-external-links + uses: ./.github/workflows/common/set-up-mdbook + with: + token: ${{secrets.GITHUB_TOKEN}} - name: Build mdBook 📚 run: mdbook build