Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created February 14, 2016 23:53
Show Gist options
  • Save matt40k/5ab0659677ec963fedb3 to your computer and use it in GitHub Desktop.
Save matt40k/5ab0659677ec963fedb3 to your computer and use it in GitHub Desktop.
Returns the latest (public) build for SIMS Bulk Import (published on GitHub).
$url = "https://api.github.com"
$header = @{"ACCEPT"="application/json";"User-Agent"="SIMSBulkImport"}
$r = Invoke-WebRequest -Uri $url/repos/SIMSBulkImport/SIMSBulkImport/releases/latest -Method GET -Headers $header
$content = $r.Content | ConvertFrom-Json
Write-Host $content.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment