Compare commits

..

1 commit

Author SHA1 Message Date
0a637165fe
fix: invalid API url
All checks were successful
/ check (treefmt) (push) Successful in 3s
/ check-renovaterc (push) Successful in 2s
/ report-size (push) Successful in 1s
I misstyped the API URL T-T
2025-03-10 23:39:53 +01:00

View file

@ -41,9 +41,9 @@ markdown_from_report() {
cat <<-"EOF" cat <<-"EOF"
<!-- AUTOGENERATED by nix-flake-outputs-size action --> <!-- AUTOGENERATED by nix-flake-outputs-size action -->
# Flake output sizes ## Flake output sizes
<details><summary><b>Definitions:</b></summary> <details><summary><b>Definitions</b></summary>
- `Name`: the name of the package/configuration. - `Name`: the name of the package/configuration.
- `Size`: the closure size (size on disk/NAR size + all transitive dependencies). - `Size`: the closure size (size on disk/NAR size + all transitive dependencies).
@ -62,7 +62,7 @@ markdown_from_report() {
fi fi
cat <<-"EOF" cat <<-"EOF"
<details><summary><b>Tips on reading this data:</b></summary> <details><summary><b>Tips on reading this data</b></summary>
- For NixOS configurations you generally care only about the `Size` (closure size/size on disk). - For NixOS configurations you generally care only about the `Size` (closure size/size on disk).
- Reduce the `Size` by disabling unneeded services/default packages. - Reduce the `Size` by disabling unneeded services/default packages.
@ -79,7 +79,7 @@ markdown_from_report() {
compare=$(jq --slurp --from-file "${GITHUB_ACTION_PATH:-.}/compare.jq" "$1" "$2") compare=$(jq --slurp --from-file "${GITHUB_ACTION_PATH:-.}/compare.jq" "$1" "$2")
if echo "$compare" | has_elements 'nixosConfigurations'; then if echo "$compare" | has_elements 'nixosConfigurations'; then
cat <<-"EOF" cat <<-"EOF"
# NixOS Configurations ## NixOS Configurations
| Name | Size | Size Change | NAR Size | NAR Size Change | | Name | Size | Size Change | NAR Size | NAR Size Change |
|------|-----:|------------:|---------:|----------------:| |------|-----:|------------:|---------:|----------------:|
@ -89,7 +89,7 @@ markdown_from_report() {
fi fi
if echo "$compare" | has_elements 'packages'; then if echo "$compare" | has_elements 'packages'; then
cat <<-"EOF" cat <<-"EOF"
# Packages ## Packages
| Name | Size | Size Change | NAR Size | NAR Size Change | | Name | Size | Size Change | NAR Size | NAR Size Change |
|------|-----:|------------:|---------:|----------------:| |------|-----:|------------:|---------:|----------------:|
@ -100,7 +100,7 @@ markdown_from_report() {
else else
if has_elements 'nixosConfigurations' "$1"; then if has_elements 'nixosConfigurations' "$1"; then
cat <<-"EOF" cat <<-"EOF"
# NixOS Configurations ## NixOS Configurations
| Name | Size | NAR Size | | Name | Size | NAR Size |
|------|-----:|---------:| |------|-----:|---------:|
@ -110,7 +110,7 @@ markdown_from_report() {
fi fi
if has_elements 'packages' "$1"; then if has_elements 'packages' "$1"; then
cat <<-"EOF" cat <<-"EOF"
# Packages ## Packages
| Name | Size | NAR Size | | Name | Size | NAR Size |
|------|-----:|---------:| |------|-----:|---------:|