ci: add logs for debugging [skip ci]
This commit is contained in:
@@ -23,6 +23,7 @@ else
|
|||||||
echo "Removing all the workflows that are not successful or failed..."
|
echo "Removing all the workflows that are not successful or failed..."
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
id="$line"
|
id="$line"
|
||||||
|
echo "Processing workflow $id"
|
||||||
## Workaround for https://github.com/cli/cli/issues/4286 and https://github.com/cli/cli/issues/3937
|
## Workaround for https://github.com/cli/cli/issues/4286 and https://github.com/cli/cli/issues/3937
|
||||||
echo -n | gh api --method DELETE /repos/${repo}/actions/runs/${id} --input -
|
echo -n | gh api --method DELETE /repos/${repo}/actions/runs/${id} --input -
|
||||||
|
|
||||||
@@ -39,6 +40,7 @@ else
|
|||||||
echo -e "\nDeleting workflows without logs and artifacts..."
|
echo -e "\nDeleting workflows without logs and artifacts..."
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
id="$line"
|
id="$line"
|
||||||
|
echo "Processing workflow $id"
|
||||||
artifact_count=$(gh api /repos/${repo}/actions/runs/${id}/artifacts | jq -r '.total_count')
|
artifact_count=$(gh api /repos/${repo}/actions/runs/${id}/artifacts | jq -r '.total_count')
|
||||||
if [ "${artifact_count}" = "0" ]
|
if [ "${artifact_count}" = "0" ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user