natsukium/Nix Diff Action

Compare Nix derivations between base and PR branches using dix

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
modeOperation mode: "full" for simple single-job workflow, "diff-only" for parallel execution, "comment-only" for aggregating resultsnofull
attributesNix attributes to compare in YAML array format. Each item requires: - displayName: Name shown in PR comment headers (e.g., "myhost" appears as "### myhost") - attribute: Nix attribute path (without '#' prefix) Example: - displayName: myapp attribute: packages.x86_64-linux.default - displayName: nixos-config attribute: nixosConfigurations.myhost.config.system.build.toplevel Note: Do not include '#' or '.#' prefix - the reference is constructed automatically. no
buildBuild outputs before comparing. Enables closure size comparison but increases workflow time. Requires running on a platform matching the output (e.g., x86_64-linux outputs need Linux runners).nofalse
directoryDirectory containing the Nix expression to evaluate. Defaults to repository root.no.
github-tokenGitHub token for commenting on PRs. Required for full and comment-only modes.no${{ github.token }}
skip-no-changeSkip posting comment when there are no differences.notrue
comment-strategy'create' to always create new comment, 'update' to update existing comment instead of creating new one.nocreate
namedescription
diffJSON array of diff results. Each item has `displayName` and `diff` keys.