Skip to content

Instantly share code, notes, and snippets.

@kerphi
Created May 20, 2022 09:33
Show Gist options
  • Save kerphi/5dea5e88a925bd56103d3316160a526a to your computer and use it in GitHub Desktop.
Save kerphi/5dea5e88a925bd56103d3316160a526a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Script pour nettoyer en masse des releases et tag associés
VERSION_LIST=$(gh release list | awk '{print $1}' | grep 9.9)
#VERSION_LIST=$(git tag | grep 9.9)
for VERSION in $VERSION_LIST;
do
gh release delete $VERSION -y
git tag -d $VERSION
git push --delete origin $VERSION
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment