chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / pl / plasticity / update.sh
blob2b778658739d2d3935f7b6d601bc5a894aaf431f
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl jq common-updater-scripts
3 #shellcheck shell=bash
5 set -eu -o pipefail
7 version=$(curl -s ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \
8 https://api.github.com/repos/nkallen/plasticity/releases/latest | jq -e -r ".tag_name | .[1:]")
9 old_version=$(nix-instantiate --eval -A plasticity.version | jq -e -r)
11 if [[ $version == "$old_version" ]]; then
12 echo "New version same as old version, nothing to do." >&2
13 exit 0
16 update-source-version plasticity "$version"