fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1#!/usr/bin/env nix-shell
2#!nix-shell -i bash -p coreutils curl jq nix-update
3
4set -euo pipefail
5
6# this package is part of a monorepo with many tags; nix-update only seems to
7# fetch the 10 most recent
8# https://github.com/Mic92/nix-update/issues/231
9owner="graphql"
10repo="graphiql"
11version=$(
12 curl -s ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} "https://api.github.com/repos/graphql/graphiql/git/refs/tags/graphql-language-service-cli" |
13 jq 'map(.ref | capture("refs/tags/graphql-language-service-cli@(?<version>[0-9.]+)").version) | .[]' -r |
14 sort --reverse --version-sort | head -n1
15)
16
17if [[ "$UPDATE_NIX_OLD_VERSION" == "$version" ]]; then
18 echo "Already up to date!"
19 exit 0
20fi
21
22nix-update graphql-language-service-cli --version $version