https://api.github.com/repos/WordPress/WordPress/releases/latest doesn't seem to work, so we are out of luck
using
xpath
package (specificallywget -qO- https://wordpress.org/download/releases/ | xpath -e '//table[contains(@class,'latest')]/tbody/tr/td[1]'
) won't work, because the https://wordpress.org/download/releases/ is not really valid HTML page and writing bash workarounds for the official site seems like an overkillsvn log https://core.svn.wordpress.org/tags --limit 1 | grep 'Tag'
Is a way that works, but there's no chance this will always show latest stable tag.
Do you maybe have any other ideas that are reliable to get the latest stable release?
Expected value I'm looking for (at the time of writing this post):
5.2
EDIT: someone marked the question as duplicate,but one of the answers cleared that out. The Wordpress github repository does NOT have releases, and latest stable release cannot be fetched using github API.
/tags
will show ALL tags, and I'm only interested in stable ones.