n8n: only update to stable releases

This commit is contained in:
Gutyina Gergő
2024-12-24 18:09:30 +01:00
parent cf56aed31d
commit c80e739644
2 changed files with 7 additions and 2 deletions
+1 -2
View File
@@ -13,7 +13,6 @@
libmongocrypt,
postgresql,
makeWrapper,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -84,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: {
passthru = {
tests = nixosTests.n8n;
updateScript = nix-update-script { };
updateScript = ./update.sh;
};
dontStrip = true;
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p bash curl jq nix-update cacert git
set -euo pipefail
new_version="$(curl -s "https://api.github.com/repos/n8n-io/n8n/releases/latest" | jq --raw-output '.tag_name | ltrimstr("n8n@")')"
nix-update n8n --version "$new_version"