mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 14:51:13 -03:00
- Convert update checks in check.sh to mechanical updates. - Use https://www.updatecli.io/ for now, which is not as full-featured as renovatebot or dependabot, but I found it easier to plug arbitrary shell scripts into. - Add updaters for - ubuntu-latest-lts (which is similar to GitHub Action's "ubuntu-latest"). - FreeBSD image used in Cirrus (requires "gcloud auth login" for now, see https://github.com/cirruslabs/cirrus-ci-docs/issues/1315) - littlecheck and widecharwidth - Update all dependencies except Cargo ones. - As a reminder, our version policies are arbitrary and can be changed as needed. - To-do: - Add updaters for GitHub Actions (such as "actions/checkout"). Renovatebot could do that.
17 lines
472 B
Bash
Executable File
17 lines
472 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
channel=$1 # e.g. stable, testing
|
|
package=$2 # e.g. rustc, sphinx
|
|
|
|
codename=$(
|
|
curl -fsS https://ftp.debian.org/debian/dists/"${channel}"/Release |
|
|
grep '^Codename:' | cut -d' ' -f2)
|
|
curl -fsS https://sources.debian.org/api/src/"${package}"/ |
|
|
jq -r --arg codename "${codename}" '
|
|
.versions[] | select(.suites[] == $codename) | .version' |
|
|
sed 's/^\([0-9]\+\.[0-9]\+\).*/\1/' |
|
|
sort --version-sort |
|
|
tail -1
|