#!/usr/bin/env nix-shell #!nix-shell --pure -i bash -p bash curl jq nix-update cacert git set -euo pipefail # n8n now publishes two releases per version: a "stable" tag and a "n8n@X.Y.Z" versioned tag. # Skip the "stable" tag and get the actual version from the next release. new_version="$(curl -s "https://api.github.com/repos/n8n-io/n8n/releases" | jq --raw-output 'map(select(.tag_name != "stable")) | .[0].tag_name | ltrimstr("n8n@")')" nix-update n8n --flake --version "$new_version"