Refactor: Get the latest version from Homebrew (#28)

Refactoring

* feat: Add reject to Promise
* feat: Add printing inputs
* feat: Add error handling to getLatestVersion()
* feat: show version of Hugo, Go, and Git (Close #23)
* refactor: Get the latest version from Homebrew (Close #26)
* refactor: enhance error message of promise reject

Enhancement for workflow

* gha: Add deps (test-prod job needs test job)
* gha: Fix matrix testing
* gha: comment out Build production step
* gha: remove Dump step

Update README

* docs: update readme
This commit is contained in:
Shohei Ueda
2019-09-18 04:11:47 +09:00
committed by GitHub
parent 85171ece4e
commit d46d0aa12e
6 changed files with 102 additions and 86 deletions

View File

@@ -83,9 +83,7 @@ jobs:
hugo-version: 'latest'
```
**Note**: This action gets a Hugo latest version by GitHub API. Please be aware of [GitHub API Rate limiting]
[GitHub API Rate limiting]: https://developer.github.com/v3/#rate-limiting
This action fetches the latest version of Hugo by [hugo | Homebrew Formulae](https://formulae.brew.sh/formula/hugo)