mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-09-18 01:17:05 +08:00
Update target-image-sync.yml (#2431)
This commit is contained in:
3
.github/workflows/target-image-sync.yml
vendored
3
.github/workflows/target-image-sync.yml
vendored
@@ -49,9 +49,6 @@ 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 --no-tags "docker://${ORIGIN_IMAGE}"; then
|
|
||||||
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 不存在呢"
|
|
||||||
fi
|
|
||||||
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步中...<br>[详情请查看](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
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 "SYNC IMAGE ${ORIGIN_IMAGE}"
|
gh issue edit ${{ github.event.issue.number }} --title "SYNC IMAGE ${ORIGIN_IMAGE}"
|
||||||
- name: Start Proxy
|
- name: Start Proxy
|
||||||
|
Reference in New Issue
Block a user