Comment the size of nix flake output derivations on a PR
Find a file
Jalil David Salamé Messina 1db9349c00
feat(action): add workaround for private repos
This is a slow, but foolproof way to ensure a comparison report is
generated.
2024-12-18 21:15:52 +01:00
action.yml feat(action): add workaround for private repos 2024-12-18 21:15:52 +01:00
comment_on_pr.sh fix(action): small typos and weird stuff 2024-12-18 16:20:41 +01:00
compare.jq feat!(report): generate JSON instead of markdown 2024-12-17 23:17:48 +01:00
create-report.sh fix(action): small typos and weird stuff 2024-12-18 16:20:41 +01:00
README.md feat: create action 2024-12-15 20:32:32 +01:00
utils.sh fix(action): better logging 2024-12-18 16:06:58 +01:00

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.