May 2019
Beginner to intermediate
456 pages
10h 37m
English
The release API for GitHub is well-documented at https://developer.github.com/v3/repos/releases/. The API supports various functions, including the ability to get all releases for a repository, get a specific release, get a release by tag name, and most importantly, to get the latest release. In this recipe, we'll be using the get latest release functionality:
https://api.github.com/repos/Microsoft/azure-pipelines-agent/releases/latest
If you invoke this URL in a browser, you'll get a JSON response that includes most of the properties we'll be leveraging in our PowerShell script. The body of the response also includes the https://vstsagentpackage.azureedge.net/agent URL. A download URL can be dynamically generated for the platform ...
Read now
Unlock full access