ci: update watch list when we run an update

This commit is contained in:
Aaron Bieber 2023-05-23 14:56:12 -06:00
parent 0b03dab7d1
commit 1775d7cc05
No known key found for this signature in database

6
bin/ci
View File

@ -31,6 +31,12 @@ if [ "${1}" = "update" ]; then
handle_co_fail "${ci_branch}" handle_co_fail "${ci_branch}"
exit 1 exit 1
fi fi
deploy watch update
if ! git diff --exit-code >/dev/null; then
git add pull_requests
git commit -m 'watched: update watched pull requests'
fi
for inp in $(nix flake metadata --json | jq -r '.locks.nodes.root.inputs | keys[] as $k | $k'); do for inp in $(nix flake metadata --json | jq -r '.locks.nodes.root.inputs | keys[] as $k | $k'); do
if ! git checkout -b "${ci_branch}_${inp}"; then if ! git checkout -b "${ci_branch}_${inp}"; then