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

@ -32,6 +32,12 @@ if [ "${1}" = "update" ]; then
exit 1
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
if ! git checkout -b "${ci_branch}_${inp}"; then
handle_co_fail "${ci_branch}_${inp}"