Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to consuming JSON from GitHub for "latest commit touching file"
For some reason, https://github.com/xxx/yyy/commits/HEAD/zzz.atom has recently changed from returning XML by default to returning JSON, which from https://docs.github.com/en/rest/activity/feeds?apiVersion=2022-11-28 seems like it's intentional, so this adds an explicit `Accept:` header (the only explicit JSON one that seems to work) and uses `jq` to determine the latest commit instead of hacking up the XML via `grep`+`awk`. See also docker-library/docker#472 (Additionally, this switches the file to use `wget` consistently instead of a mix of `wget` and `curl`)
- Loading branch information