From 7710666b0284cb24f914495e704860482ee63f8f Mon Sep 17 00:00:00 2001 From: AnJia Date: Tue, 24 May 2022 09:50:43 +0800 Subject: [PATCH] fix --- .github/workflows/gcr.io_mirror.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gcr.io_mirror.yml b/.github/workflows/gcr.io_mirror.yml index 5035774..b3ef7df 100644 --- a/.github/workflows/gcr.io_mirror.yml +++ b/.github/workflows/gcr.io_mirror.yml @@ -175,6 +175,7 @@ jobs: let colonIndex = gcrImg.indexOf(":") + if (colonIndex > 0) { gcrImg = gcrImg.substr(0,colonIndex) } @@ -182,14 +183,14 @@ jobs: let names = gcrImg.split("/") let registry = names[0] names=names.splice(1,2) - if("gcr.io" == registry){ - body+="\n k8s.gcr.io Api(需梯子) \n\n k8s.gcr.io UI(需梯子) \n\n" + if("k8s.gcr.io" == registry){ + body+="\n\n\n k8s.gcr.io Api(需梯子) \n\n k8s.gcr.io UI(需梯子) \n\n" }else{ let uri=names[0]+"/global/"+names[1] if(names.length==1){ uri="global/"+names[0] } - body+="\n gcr.io Api(需梯子) \n\n gcr.io UI \n\n" + body+="\n\n\n gcr.io Api(需梯子) \n\n gcr.io UI \n\n" } const issuesComment = await github.issues.createComment({