Skip to content

Commit

Permalink
fixup! github/workflows/eval: add markdown of added, removed and changed
Browse files Browse the repository at this point in the history
  • Loading branch information
itepastra committed Nov 30, 2024
1 parent 6ce1992 commit de04c7b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ci/eval/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,11 @@ let
--slurpfile after ${afterResultDir}/outpaths.json \
> $out/changed-paths.json
echo -e "## Added\n" > $out/step-summary.md
jq -r '.attrdiff.added[]' $out/changed-paths.json >> $out/step-summary.md
echo -e "\n## Removed\n" >> $out/step-summary.md
jq -r '.attrdiff.removed[]' $out/changed-paths.json >> $out/step-summary.md
echo -e "\n## Changed\n" >> $out/step-summary.md
jq -r '.attrdiff.changed[]' $out/changed-paths.json >> $out/step-summary.md
jq -r '
"## Added\n" + (.attrdiff.added | map("- \(. )") | join("\n")) + "\n" +
"## Removed\n" + (.attrdiff.removed | map("- \(. )") | join("\n")) + "\n" +
"## Changed\n" + (.attrdiff.changed | map("- \(. )") | join("\n")) + "\n" +
' < $out/changed-paths.json > $out/step-summary.md
# TODO: Compare eval stats
'';

Expand Down

0 comments on commit de04c7b

Please sign in to comment.