From 74d3bfc41196cb091ec950a481b83eed4496d77d Mon Sep 17 00:00:00 2001 From: imdingtalk Date: Fri, 21 Jun 2024 00:40:47 +0000 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/image-mirror.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/image-mirror.yml b/.github/workflows/image-mirror.yml index 5a41958..36e4f55 100644 --- a/.github/workflows/image-mirror.yml +++ b/.github/workflows/image-mirror.yml @@ -38,18 +38,18 @@ jobs: run: | python .github/scripts/check_image_format.py "${{ github.event.issue.body }}" - - name: Add comment if body is not image format - if: steps.check_body.outputs.is_image_format == 'false' - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - github.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.issue.number, - body: `@${{ github.event.issue.user.login }} 请使用标准镜像格式\n镜像要带tag,如nginx,请写为nginx:latest; \n标题不重要,issue描述部分,每行一个镜像不要有其他内容\n 可以直接更新你的issue` - }) + - name: Add comment if body is not image format + if: steps.check_body.outputs.is_image_format == 'false' + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: `@${{ github.event.issue.user.login }} 请使用标准镜像格式\n镜像要带tag,如nginx,请写为nginx:latest; \n标题不重要,issue描述部分,每行一个镜像不要有其他内容\n 可以直接更新你的issue` + }) - name: Add image-mirror label if body is image format if: steps.check_body.outputs.is_image_format == 'true'