Add allows check for sync

This commit is contained in:
Shiming Zhang
2024-06-18 16:51:10 +08:00
parent 5b89b1d521
commit 5a3f3841d6
3 changed files with 35 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ jobs:
gh issue edit ${{ github.event.issue.number }} --add-label "sync image succeeded" -b "IMAGE SYNC"
gh issue close ${{ github.event.issue.number }} --reason "completed"
if ! ./hack/verify-allows.sh ./allows.txt "${ORIGIN_IMAGE}"; then
gh issue comment ${{ github.event.issue.number }} -b "这个镜像不在白名单列表里, 在未来可能将无法访问<br>将其添加到[白名单](https://github.com/DaoCloud/public-image-mirror/blob/main/allows.txt)"
fi
- name: Fail Sync
if: failure()
env: