-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Is your feature request related to a problem? Please describe.
An option that fetching the latest version from value.
with:
fetch-from: 'github' # default: 'brew'Describe the solution you'd like
Provide this option.
Describe alternatives you've considered
N/A
Additional context
A workaround for GitHub API limitation.
- name: Get the latest version
id: mdbook_version
run: |
MDBOOK_VERSION="$(curl -fsi "https://github.com/${GITHUB_REPOSITORY}/releases/latest" | awk -F/ '/^Location:/ {print $(NF)}')"
echo "::set-output name=mdbook_version::${MDBOOK_VERSION}"
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '${{ steps.mdbook_version.outputs.mdbook_version }}'