From 27132e0256d245e441327ab73cf5e6e7957f354a Mon Sep 17 00:00:00 2001 From: mini2024 Date: Fri, 4 Apr 2025 16:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20gh-run-delete.sh=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BB=A5=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4?= =?UTF-8?q?=20GitHub=20=E8=BF=90=E8=A1=8C=20[no=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/gh-run-delete.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/gh-run-delete.sh diff --git a/.github/gh-run-delete.sh b/.github/gh-run-delete.sh new file mode 100644 index 0000000..9c474cb --- /dev/null +++ b/.github/gh-run-delete.sh @@ -0,0 +1,4 @@ +while gh run list --json databaseId --jq '.[].databaseId' | grep -q .; do + for id in $(gh run list --json databaseId --jq '.[].databaseId'); do gh run delete $id; done + echo "继续删除下一批..." +done