Comment the size of nix flake output derivations on a PR
Jalil David Salamé Messina
46291fc850
This allows us to analyze the report more easily. There is experimental support for comparing against a base report, but we don't expose that functionality to the action. |
||
---|---|---|
action.yml | ||
comment_on_pr.sh | ||
compare.jq | ||
create-report.sh | ||
README.md |
Nix Flake outputs size
Use nix path-info
to query the size of flake outputs and produce a markdown report.
You can post this report as a comment to the PR associated with the current branch and/or export the report as a markdown artifact.
Requires nix
, jq
, curl
, sed
and coreutils
to be in path.
Usage
- name: Generate size report
uses: https://git.salame.cl/jalil/nix-flake-outputs-size@main
with: # Default values
comment-on-pr: 'true'
generate-artifact: 'false'
artifact-name: 'size-report.md'
For more details see the action.yaml file.