#!/bin/bash
# With thanks from here: https://gist.github.com/LUN7/0276596588f88335325c56873cf401c1
gh release list | grep Draft |  sed -e 's/.*Draft[[:blank:]]*//' -e 's/[[:blank:]].*//g' | while read -r line; do gh release delete -y "$line"; done
