Compare commits

..

1 commit

Author SHA1 Message Date
07e91526f1
refactor: move scripts to scripts folder
Some checks failed
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Failing after 4s
/ report-download-check (push) Has been skipped
This is a bit tidier.
2025-07-10 21:15:19 +02:00
3 changed files with 4 additions and 4 deletions

View file

@ -130,7 +130,7 @@ runs:
fi
# Create Size Report
"$GITHUB_ACTION_PATH/scripts/create-report.sh" report.json
"$GITHUB_ACTION_PATH/scripts/create-report.sh" > report.json
# Nothing else to do
if [ "$COMMENT" != 'true' ]; then exit 0; fi

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -eu
@ -78,4 +78,4 @@ echo "{}" | jq \
--argjson pkgs "$pkgs" \
--argjson hmConfigs "$hmConfigs" \
--argjson nixosConfigs "$nixosConfigs" \
'{"packages": $pkgs, "nixosConfigurations": $nixosConfigs, "homeConfigurations": $hmConfigs}' >"${1:-/dev/stdout}"
'{"packages": $pkgs, "nixosConfigurations": $nixosConfigs, "homeConfigurations": $hmConfigs}'

View file

@ -74,6 +74,6 @@ curl -X 'GET' \
tar -zvx --strip-components=1 -C "$old"
endgroup
(cd "$old" && "$GITHUB_ACTION_PATH/create-report.sh" old-report.json)
(cd "$old" && "$GITHUB_ACTION_PATH/create-report.sh") >old-report.json
exit 0