mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-11 12:56:27 +08:00
Add allows check for sync
This commit is contained in:
4
.github/workflows/target-image-sync.yml
vendored
4
.github/workflows/target-image-sync.yml
vendored
@@ -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:
|
||||
|
4
.github/workflows/target-sync-image.yml
vendored
4
.github/workflows/target-sync-image.yml
vendored
@@ -59,6 +59,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()
|
||||
run: |
|
||||
|
Reference in New Issue
Block a user