strip ansi

This commit is contained in:
Daylin Morgan 2024-07-16 12:20:24 -05:00
parent 8b001fb488
commit 52daf2551a
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -101,8 +101,11 @@ jobs:
- run: | - run: |
echo "# System Diff" >> $GITHUB_STEP_SUMMARY echo "# System Diff" >> $GITHUB_STEP_SUMMARY
# TODO: deal with store diff-closures ansi outputs... diff=$(nix store diff-closures ./current ./updated)
nix store diff-closures ./current ./updated | tee -a $GITHUB_STEP_SUMMARY summary.md echo $diff
echo $diff >> summary.md
echo $diff | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' >> $GITHUB_STEP_SUMMARY
- run: df -h - run: df -h
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4