Clean dangling at start

This commit is contained in:
Igor
2024-09-26 08:29:21 +02:00
committed by GitHub
parent 8a63645936
commit 32bfbca43f

View File

@@ -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