mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-22 14:49:12 +08:00
Remove privileged image
This commit is contained in:
18
.github/workflows/verify-pr.yml
vendored
18
.github/workflows/verify-pr.yml
vendored
@@ -7,7 +7,6 @@ on:
|
||||
- 'domain.txt'
|
||||
- 'mirror.txt'
|
||||
- 'allows.txt'
|
||||
- 'privileged.txt'
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
@@ -61,23 +60,6 @@ jobs:
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Verify privileged.txt sort
|
||||
run: |
|
||||
./hack/verify-image-match.sh privileged.txt || {
|
||||
echo "Please run './hack/fmt-image-match.sh privileged.txt'"
|
||||
gh pr comment "${{ github.event.pull_request.number }}" --body '请运行 `./hack/fmt-image-match.sh privileged.txt` 对内容进行排序'
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Verify privileged.txt in allows.txt
|
||||
run: |
|
||||
cat privileged.txt >>allows.txt
|
||||
./hack/fmt-image-match.sh allows.txt
|
||||
git --no-pager diff --exit-code || {
|
||||
gh pr comment "${{ github.event.pull_request.number }}" --body '部分 privileged.txt 镜像未加到 allows.txt. 请运行 `cat privileged.txt >>allows.txt; ./hack/fmt-image-match.sh allows.txt`'
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Verify mirror.txt in allows.txt
|
||||
run: |
|
||||
cat mirror.txt >>allows.txt
|
||||
|
Reference in New Issue
Block a user