Unverified Commit 47329aa7 authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

n8n: fix update script

Upstream only published tags in the format of "n8n@1.2.3", but recently
they started publishing a "stable" tag which broke the script.
parent 6300dbec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ set -euo pipefail

new_version="$(curl -s 'https://api.github.com/repos/n8n-io/n8n/releases?per_page=30' | \
  jq -r '
    map(select(.prerelease | not) | .tag_name | sub("^n8n@"; ""))
    map(select(.prerelease | not) | .tag_name | select(startswith("n8n@")) | sub("^n8n@"; ""))
    | sort_by(split(".") | map(tonumber)) | last
    ')"
nix-update n8n --version "$new_version"