Files
nix-config/nix-flake-update.sh
2024-03-15 12:31:01 -04:00

14 lines
246 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
git pull
update_msg=$(nix flake update 2>&1 | grep -v 'warning:')
just rebuild
git add .
git commit -S -m "nix flake update: $(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')
$update_msg"
echo "$update_msg"
git push