-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GitHub actions to all be Node20+ (#271)
- Loading branch information
Showing
3 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
name: "Install mdBook with Plugins" | ||
description: 'Shared action steps to install mdBook with required plugins' | ||
description: "Shared action steps to install mdBook with required plugins" | ||
inputs: | ||
token: | ||
description: "Pass through for secrets.GITHUB_TOKEN" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup mdBook 📚 | ||
uses: peaceiris/actions-mdbook@adeb05db28a0c0004681db83893d56c0388ea9ea | ||
uses: jontze/action-mdbook@0765bef0c7c5792f93bf3ed3d487a0ca32c9da33 | ||
with: | ||
mdbook-version: 'latest' | ||
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" | ||
|
||
- name: Install mdbook-linkcheck plugin | ||
- name: Show mdbook version | ||
shell: bash | ||
run: | | ||
curl -s https://api.github.com/repos/Michael-F-Bryan/mdbook-linkcheck/releases/latest \ | ||
| grep browser_download_url \ | ||
| grep $(rustc -Vv | grep host | cut -d' ' -f2) \ | ||
| cut -d : -f 2,3 \ | ||
| tr -d \" \ | ||
| wget -qi - -O mdbook-linkcheck.zip | ||
unzip mdbook-linkcheck.zip -d mdbook-linkcheck | ||
chmod +x mdbook-linkcheck/mdbook-linkcheck | ||
echo "$PWD/mdbook-linkcheck" >> $GITHUB_PATH | ||
run: mdbook --version | ||
- name: Show linkchecker version | ||
shell: bash | ||
run: mdbook-linkcheck --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters