flake-checker/get-allowed-refs.sh
2023-05-22 22:16:15 +02:00

6 lines
232 B
Bash
Executable File

#!/bin/bash
curl --fail --silent \
'https://monitoring.nixos.org/prometheus/api/v1/query?query=channel_revision' \
| jq -r '{ "allowed_branches": [(.data.result[] | select(.metric.current == "1") | .metric.channel)] | sort }'