mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-11-02 15:16:11 +08:00
update (#587)
This commit is contained in:
8
.github/workflows/target-image-sync.yml
vendored
8
.github/workflows/target-image-sync.yml
vendored
@@ -28,12 +28,6 @@ jobs:
|
|||||||
gh issue close ${{ github.event.issue.number }} --reason "not planned"
|
gh issue close ${{ github.event.issue.number }} --reason "not planned"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [[ "${ORIGIN_IMAGE}" != *":"* ]]; then
|
||||||
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不存在呢, 请指定 tag"
|
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不存在呢, 请指定 tag"
|
||||||
gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE"
|
gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE"
|
||||||
@@ -93,5 +87,5 @@ 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")
|
||||||
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步失败"
|
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步失败<br>[详情请查看](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
||||||
gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE ${ORIGIN_IMAGE}"
|
gh issue edit ${{ github.event.issue.number }} --title "FAILED SYNC IMAGE ${ORIGIN_IMAGE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user