fix(workflows): Use the correct separator when filtering unknown files

This commit is contained in:
Tom Hubrecht 2024-11-11 17:24:42 +01:00
parent d09ac44347
commit 36a74f5ff6
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -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