Preview:
#!/bin/bash
# Lista todas as execuções do workflow e extrai os IDs
execution_ids=$(gh run list -R RocketBus/ansible -w new-whitelabelv4.yaml --json databaseId | jq '.[] | .databaseId')
# Loop através dos IDs e exclui cada execução
for id in $execution_ids
do
    gh run delete $id -R RocketBus/ansible
    # echo $id
done
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter