client9 / shlib

portable functions for posix shell environments
The Unlicense
365 stars 36 forks source link

Get GitHub repo last release number without API #2

Closed client9 closed 6 years ago

client9 commented 7 years ago

This seems to work, and doesn't require the API. Which is good since using goreleaser on travis.ci requires a GITHUB_TOKEN due to rate limiting.

wget -q -O - https://github.com/mpeterv/luacheck/releases/latest |\
 grep '<title>' |\
 awk  '{ print $2 }'

works since the <title> tag is formatted as so:

  <title>Release 0.21.2 · mpeterv/luacheck</title>
client9 commented 6 years ago

fixed in 261a496..4d431a8 master -> master