We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb41260 commit 4afab71Copy full SHA for 4afab71
transform.nu
@@ -32,7 +32,13 @@ def main (file: string) {
32
$status.attr | inspect
33
let build_log = (do -i {
34
script -efq -c $"nix log --log-format internal-json \".#checks.($system).($status.attr)\"" e+o>|
35
- | awk "/Running phase:/{p=1}p"
+ | awk "/@nix/{p=1}p" # avoid any escape codes before the first @nix
36
+ | lines
37
+ | each {|row| $row | cut -c 6-}
38
+ | each {|row| $row | from json}
39
+ | where {|log| $log.action == "msg"}
40
+ | last
41
+ | $in.msg
42
})
43
rm ./typescript
44
$status | update error $build_log
0 commit comments