mirror of
https://github.com/armbian/actions.git
synced 2026-01-06 10:36:19 -08:00
Clean dangling at start
This commit is contained in:
@@ -121,11 +121,3 @@ runs:
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
"/repos/armbian/os/actions/runners?per_page=1000" | \
|
||||
jq -r '.runners[] | select(.labels[].name=="temp")' | jq '.id')
|
||||
|
||||
while IFS= read -r id; do
|
||||
gh api --silent \
|
||||
--method DELETE \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
/repos/armbian/os/actions/runners/${id}
|
||||
done <<< $RUNNERS
|
||||
|
||||
Reference in New Issue
Block a user