Closed dscho closed 1 year ago
This probably needs a combination of Invoke-WebRequest
and ConvertFrom-JSON
(similar to this code even if that calls into the Azure DevOps REST API, not the GitHub REST API, but the idea is the same).
I can't find a programmatic way of getting the checksum for the assets being downloaded. As per this discussion https://github.com/orgs/community/discussions/23512 it seems that it's a missing feature and it's up the the maintainers to list the asset checksums in the release notes. Any ideas?
The checksums are listed in the release notes, so we should be able to parse them from there.
Oh boy. Ok, I'll try that approach tomorrow. I didn't expect we were going there 😅 🤞🏼 they won't change the release notes format
Certainly not ideal, but it's the best we've got
@dscho it do seem that @hmartinez82 has fixed this issue already, I was to slow. But if you have any other Powershell needs just DM me and I can look at it.
I can't see @hmartinez82 pull request but I guess that this one will close the issue :)
@dscho and @hmartinez82 I have a better solution for the Hash issue, hold on I'm looking in to it now.
@rstolpe You mean https://github.com/git-for-windows/git-for-windows-automation/pull/19 ? I'll close mine. You have a better solution with error handling and all
@rstolpe You mean https://github.com/git-for-windows/git-for-windows-automation/pull/19 ? I'll close mine. You have a better solution with error handling and all
I'll pull once more during next week with a better solution but the pr that I did now will work until I have the time to make it better :)
This issue will be closed with #19 pull req.
When spinning up the self-hosted Windows/ARM64 runners, we hard-code the Git for Windows version that gets installed, and likewise we hard-code the GitHub Actions runner version.
Let's determine the latest versions of both components automatically.
This requires a little bit of PowerShell scripting, accessing https://api.github.com/repos/git-for-windows/git/releases/latest and https://api.github.com/repos/actions/runner/releases/latest. Both the version string as well as the SHA-256 checksums need to be parsed out of the response.