Hello I'm trying to extract a version number from a github release site. Which I later need for a Ansible role.
For example I want to get the exact neovim version number of the latest release from github. So far I've got this:
curl -s https://api.github.com/repos/neovim/neovim/releases/latest | grep NVIM | cut -c 1-35
Output is:
"body": "```\nNVIM v0.9.0\nBuild
I tried to extract the version number using sed but I didnt get it to work.
Unfortunately this blog article doesn't also work for me https://fabianlee.org/2021/02/16/bash-determining-latest-github-release-tag-and-version/