Skip to content

Commit

Permalink
格式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
imdingtalk committed Jun 21, 2024
1 parent 1d5dff4 commit 74d3bfc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/image-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 74d3bfc

Please sign in to comment.