2026-01-18 11:04:33 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
|
|
|
|
#!nix-shell --pure -i bash -p bash curl jq nix-update cacert git
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
2026-04-22 18:50:31 +02:00
|
|
|
# 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@")')"
|
2026-02-20 08:13:46 +01:00
|
|
|
nix-update n8n --flake --version "$new_version"
|