Skip to content

feat: Add option fetch-from #34

@peaceiris

Description

@peaceiris

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 }}'

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions