From c71c543173c336678e789ea850c17bed0991ecea Mon Sep 17 00:00:00 2001 From: AnJia Date: Tue, 24 May 2022 09:44:54 +0800 Subject: [PATCH] debug --- .github/workflows/gcr.io_mirror.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gcr.io_mirror.yml b/.github/workflows/gcr.io_mirror.yml index 2fe04bb..8e6a595 100644 --- a/.github/workflows/gcr.io_mirror.yml +++ b/.github/workflows/gcr.io_mirror.yml @@ -170,8 +170,17 @@ jobs: labels=['failed'] } - let abc = "${{ steps.pullIssuesPorter.outputs.GCR_IMAGE }}" - console.log(abc) + let gcrImg = "${{ steps.pullIssuesPorter.outputs.GCR_IMAGE }}" + console.log(gcrImg) + + let colonIndex = gcrImg.indexOf(":") + console.log(colonIndex) + + if colonIndex>0 { + gcrImg=gcrImg.substr(0,colonIndex) + } + console.log(gcrImg) + const issuesComment = await github.issues.createComment({ owner: '${{ env.GH_USER }}', repo: '${{ env.REPO_NAME }}',