From edd30445039421fe8fcc4dc90fb365017b78d713 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Wed, 1 Nov 2023 14:16:37 +0800 Subject: [PATCH] update (#587) --- .github/workflows/target-image-sync.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/target-image-sync.yml b/.github/workflows/target-image-sync.yml index f1fcf98..b9bc13b 100644 --- a/.github/workflows/target-image-sync.yml +++ b/.github/workflows/target-image-sync.yml @@ -28,12 +28,6 @@ jobs: gh issue close ${{ github.event.issue.number }} --reason "not planned" exit 1 fi - if [[ "${ORIGIN_IMAGE}" == "*" ]]; then - gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不存在呢" - gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE" - gh issue close ${{ github.event.issue.number }} --reason "not planned" - exit 1 - fi if [[ "${ORIGIN_IMAGE}" != *":"* ]]; then gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不存在呢, 请指定 tag" gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE" @@ -93,5 +87,5 @@ jobs: MESSAGE: "${{ github.event.issue.body }}" run: | ORIGIN_IMAGE=$(echo "${MESSAGE}" | grep SYNC | awk '{print $2}' | head -n 1 | sed "s/\r//g") - gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步失败" + gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步失败
[详情请查看](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE ${ORIGIN_IMAGE}"