actions-mdbook icon indicating copy to clipboard operation
actions-mdbook copied to clipboard

feat: Add option fetch-from

Open peaceiris opened this issue 5 years ago • 3 comments

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

peaceiris avatar Jan 06 '20 07:01 peaceiris

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 18 '20 05:02 github-actions[bot]

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Mar 11 '20 05:03 github-actions[bot]

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Apr 02 '20 05:04 github-actions[bot]