From 54db18f61cdc343c30592e5c906d511c611c52c4 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 17 Jul 2024 12:34:27 -0500 Subject: [PATCH] use nvd --- .github/workflows/update.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 214cdf2..18dac21 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -101,10 +101,8 @@ jobs: - run: | echo "# System Diff" >> $GITHUB_STEP_SUMMARY - diff=$(nix store diff-closures ./current ./updated) - echo "$diff" - echo "$diff" >> summary.md - echo "$diff" | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' >> $GITHUB_STEP_SUMMARY + nix run "nixpkgs#nvd" -- --color always diff ./current ./updated >> summary.md + printf "```\n%s```\n" "$(nix run "nixpkgs#nvd" -- diff ./current ./updated)" >> $GITHUB_STEP_SUMMARY - run: df -h