From 77a831a0e491e2481c35ef7335a006b9ab8b40a9 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Wed, 1 Nov 2023 16:32:21 +0000 Subject: [PATCH] flake: use ref instead of branch Sometimes, for example when making a release, there is no branch, only a ref like refs/head/v1, which means branch is set to null --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 921fe00..3125c6b 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,7 @@ effects = let pkgs = nixpkgs.legacyPackages.x86_64-linux; hci-effects = hercules-ci-effects.lib.withPkgs pkgs; - in { branch, rev, ... }: { + in { ref, rev, ... }: { gnome-graphical-test = hci-effects.mkEffect { secretsMap."stardustxrDiscord" = "stardustxrDiscord"; secretsMap."stardustxrIpfs" = "stardustxrIpfs"; @@ -67,7 +67,7 @@ export ADDRESS="https://ipfs.stardustxr.org/ipfs/$CID" ${pkgs.discord-sh}/bin/discord.sh \ --description "\`stardustxr/server\` has been modified, here's how it renders \`weston-cliptest\` on \`flatland\` via \`monado-service\` inside of the \`gnome-graphical-test\`" \ - --field "Branch;${branch}" \ + --field "Ref;${ref}" \ --field "Commit ID;${rev}" \ --field "Flatland Revision;${flatland.rev}" \ --field "Reproducer;\`nix build github:stardustxr/server/${rev}#gnome-graphical-test\`" \ -- 2.49.1