From 6d5bfc1a126c6314647705de251c11b0a5aeabed Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Thu, 12 Oct 2023 17:47:34 +0800 Subject: [PATCH] Fix target sync (#402) --- .github/workflows/target-image-sync.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/target-image-sync.yml b/.github/workflows/target-image-sync.yml index a4387fb..5a692fe 100644 --- a/.github/workflows/target-image-sync.yml +++ b/.github/workflows/target-image-sync.yml @@ -62,9 +62,7 @@ jobs: MESSAGE: "${{ github.event.issue.body }}" run: | ORIGIN_IMAGE=$(echo "${MESSAGE}" | grep SYNC | awk '{print $2}' | head -n 1 | sed "s/\r//g") - FOCUS=$(echo "${ORIGIN_IMAGE}" | awk -F':' '{print $2}') - IMAGE=$(echo "${ORIGIN_IMAGE}" | awk -F':' '{print $1}') - FOCUS=${FOCUS} ./hack/diff-image.sh "${IMAGE}" "m.daocloud.io/${IMAGE}" + ./hack/diff-image.sh "${ORIGIN_IMAGE}" "m.daocloud.io/${ORIGIN_IMAGE}" gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步完成
请使用 m.daocloud.io/${ORIGIN_IMAGE} 替代源镜像" gh issue close ${{ github.event.issue.number }} --reason "completed"