From 52daf2551a433650fa72bd65f50e7abee851fe14 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 16 Jul 2024 12:20:24 -0500 Subject: [PATCH] strip ansi --- .github/workflows/nightly.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 5f7a1f3..828f53e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -101,8 +101,11 @@ jobs: - run: | echo "# System Diff" >> $GITHUB_STEP_SUMMARY - # TODO: deal with store diff-closures ansi outputs... - nix store diff-closures ./current ./updated | tee -a $GITHUB_STEP_SUMMARY summary.md + 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 + - run: df -h - uses: actions/upload-artifact@v4