# Function to fetch the previous version of the plugin
get_previous_version(){
curl -s"$repo_url" | jq -r'del(.[].assets) | .[1].tag_name'# this would del the assets key and then get the second encountered tag_name's value from the filtered array of objects
# this would del the assets key and then get the first encountered tag_name's value from the filtered array of objects