This commit is contained in:
Shiming Zhang 2023-11-01 14:16:37 +08:00 committed by GitHub
parent 6620caf55c
commit edd3044503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -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}"