From 36a74f5ff6d8cb07c5e198baec715fc27a795f8a Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 11 Nov 2024 17:24:42 +0100 Subject: [PATCH] fix(workflows): Use the correct separator when filtering unknown files --- modules/workflows.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/workflows.nix b/modules/workflows.nix index ef90a30..03eb6a0 100644 --- a/modules/workflows.nix +++ b/modules/workflows.nix @@ -133,7 +133,7 @@ in ${optionalString cfg.removeUnknown '' # Remove unknown workflow files for file in $(ls "$GIT_WC/.${cfg.platform}/workflows" | ${getExe pkgs.gnugrep} -v '\(${ - concatMapStringsSep "|" (name: "${name}.yaml") (attrNames cfg.workflows) + concatMapStringsSep "\\|" (name: "${name}.yaml") (attrNames cfg.workflows) }\)'); do rm "$GIT_WC/.${cfg.platform}/workflows/$file" && echo "nix-actions: Removed $file" done