Sorry for asking what is probably a noob question.
I'm new to the GitHub and DevOps environments, and I've been tasked with automating some stuff. I've found a project on GitHub that is still maintained, and in the future will receive new releases.
I would like to build a pipeline in which I will need to download from GitHub the latest exe version for my specific environment.
At the moment, they have the release packages in their git repo, under /releases/vX.y.z (where X, y and z are release versions) with several packages, named like:
- package.v1.2.3.linux-amd64.tar.gz (https://github.com/some-example-repo/download/v1.2.3/package.v1.2.3-linux-arm64.tar.gz)
- package.v1.2.3.linux-arm64.tar.gz (https://github.com/some-example-repo/download/v1.2.3/package.v1.2.3-linux-arm64.tar.gz)
- package.v1.2.3.windows-amd64.zip (https://github.com/some-example-repo/download/v1.2.3/package.v1.2.3-windows-amd64.zip)
etc.
Considering the fact that the versions will change in time, is there any way I could wget a specific package by using some sort of pattern?
Happily the link: https://github.com/some-example-repo/releases/latest redirects towards the latest version released and so I was thinking of something like:
wget https://github.com/some-example-repo/download/*????/package.V???*-linux-arm64.tar.gz
Thinking about it, now that I've put this down as a question, I think it would be impossible for wget to auto-complete the URL...