nixpkgs/pkgs/by-name/fu/furnace/update.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
376 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts curl jql
set -eu -o pipefail
# Because upstream uses release tags that don't always sort correctly, query for latest release
version="$(
curl -Ls 'https://api.github.com/repos/tildearrow/furnace/releases/latest' \
| jql -r '"tag_name"' \
| sed 's/^v//'
)"
update-source-version furnace "$version"