(fix): cleanup workflow
This commit is contained in:
parent
5f92e5e696
commit
123c0c831e
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ jobs:
|
||||||
--arg current "$CURRENT_RUN_ID" \
|
--arg current "$CURRENT_RUN_ID" \
|
||||||
'.workflow_runs[]
|
'.workflow_runs[]
|
||||||
| select((.id | tostring) != $current)
|
| select((.id | tostring) != $current)
|
||||||
| select(["success", "failure", "cancelled", "skipped", "succeeded", "failed"] | index(.status))
|
| .status as $status
|
||||||
|
| select(["success", "failure", "cancelled", "skipped", "succeeded", "failed"] | index($status))
|
||||||
| select(.created < $cutoff)
|
| select(.created < $cutoff)
|
||||||
| .id' runs.json \
|
| .id' runs.json \
|
||||||
>> "$DELETE_IDS"
|
>> "$DELETE_IDS"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue