flake-checker/get-allowed-refs.sh

6 lines
232 B
Bash
Raw Normal View History

2023-05-22 23:16:15 +03:00
#!/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 }'