From c48dc5e32efb5562c5f8a1234322124d82b4a6ef Mon Sep 17 00:00:00 2001 From: Kakathic Date: Wed, 1 Nov 2023 19:24:44 +0700 Subject: [PATCH] Update test.sh --- test.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test.sh b/test.sh index 7c634a1..f81f066 100644 --- a/test.sh +++ b/test.sh @@ -1,6 +1,8 @@ -GITENV(){ echo "$1=$2" >> $GITHUB_ENV; } - - -GITENV kk 123 - -echo $kk +while true; do +if [ "$(gh issue view 14 | grep -cm1 CLOSED)" == 1 ];then +gh run cancel $GITHUB_RUN_ID +else +sleep 1 +echo 1 +fi +done