Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
imdingtalk committed Jun 21, 2024
1 parent 74d3bfc commit 9ae0f77
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/image-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:
- name: Add comment if body is not image format
if: steps.check_body.outputs.is_image_format == 'false'
uses: actions/github-script@v6
uses: peter-evans/create-or-update-comment@v2
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`
})
issue-number: ${{ github.event.issue.number }}
body: |
@${{ github.event.issue.user.login }}
!!!请使用标准镜像格式
1. 镜像要带tag,如nginx,请写为nginx:latest
2. 标题不重要,issue描述部分,每行一个镜像不要有其他内容,你可以直接更新你的issue
reactions: hooray
edit-mode: replace

- name: Add image-mirror label if body is image format
if: steps.check_body.outputs.is_image_format == 'true'
Expand Down

0 comments on commit 9ae0f77

Please sign in to comment.