Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/environment-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ jobs:
# Empty file: the closures are identical (no effective change).
: > diff.txt
else
nix store diff-closures ./result-base ./result-head > diff.txt
# Strip ANSI colour codes: diff-closures colours the size delta
# even when stdout is not a TTY, and the escape codes would
# render as raw control codes inside the Markdown comment.
nix store diff-closures ./result-base ./result-head \
| sed -E 's/\x1b\[[0-9;]*m//g' > diff.txt
fi

- name: Upsert the PR comment
Expand Down