From d9ef125772407d1b1a2b4afec3e5b0fa7cfca7f2 Mon Sep 17 00:00:00 2001 From: AnJia Date: Tue, 24 May 2022 09:37:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gcr.io_mirror.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/gcr.io_mirror.yml b/.github/workflows/gcr.io_mirror.yml index a718042..7b7b70d 100644 --- a/.github/workflows/gcr.io_mirror.yml +++ b/.github/workflows/gcr.io_mirror.yml @@ -169,6 +169,26 @@ jobs: } labels=['failed'] } + + let gcr_img = "{{ steps.pullIssuesPorter.outputs.GCR_IMAGE }}" + let colonIndex = gcr_img.indexOf(":") + + if colonIndex>0 { + gcr_img=gcr_img.substr(0,colonIndex) + } + let names = gcr_img.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" + }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" + } + const issuesComment = await github.issues.createComment({ owner: '${{ env.GH_USER }}', repo: '${{ env.REPO_NAME }}',