|
|
|
@ -2,7 +2,7 @@
|
|
|
|
name: Delete image artifacts
|
|
|
|
name: Delete image artifacts
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflow_run:
|
|
|
|
workflows: [CI]
|
|
|
|
workflows: [CI, Comment]
|
|
|
|
types:
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
- completed
|
|
|
|
|
|
|
|
|
|
|
|
@ -18,4 +18,4 @@ jobs:
|
|
|
|
for ai in $(gh api /repos/${{ github.repository }}/actions/runs/$wri/artifacts | jq '.artifacts[] | select( .name | startswith("cvat")) | .id');
|
|
|
|
for ai in $(gh api /repos/${{ github.repository }}/actions/runs/$wri/artifacts | jq '.artifacts[] | select( .name | startswith("cvat")) | .id');
|
|
|
|
do
|
|
|
|
do
|
|
|
|
gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$ai
|
|
|
|
gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$ai
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|