Update target-image-sync.yml (#2335)

This commit is contained in:
Shiming Zhang 2024-04-23 17:19:55 +08:00 committed by GitHub
parent eaeec14d00
commit a99b2f932c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ jobs:
MESSAGE: "${{ github.event.issue.body }}" MESSAGE: "${{ github.event.issue.body }}"
run: | run: |
ORIGIN_IMAGE=$(echo "${MESSAGE}" | grep SYNC | awk '{print $2}' | head -n 1 | sed "s/\r//g") ORIGIN_IMAGE=$(echo "${MESSAGE}" | grep SYNC | awk '{print $2}' | head -n 1 | sed "s/\r//g")
if ! skopeo inspect "docker://${ORIGIN_IMAGE}"; then if ! skopeo inspect --no-tags "docker://${ORIGIN_IMAGE}"; then
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不存在呢" gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不存在呢"
gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE" gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE"
gh issue close ${{ github.event.issue.number }} --reason "not planned" gh issue close ${{ github.event.issue.number }} --reason "not planned"