mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-07 23:12:46 +08:00
Add check image exists
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
name: Verify Format
|
||||
name: Verify PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
Patch:
|
||||
Check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -15,3 +15,6 @@ jobs:
|
||||
- name: Verify mirror.txt
|
||||
run: |
|
||||
./hack/verify-fmt.sh mirror.txt || { echo "Please run './hack/fmt.sh mirror.txt'"; exit 1; }
|
||||
- name: Verify Image Exists
|
||||
run: |
|
||||
./hack/verify-image.sh https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}.patch
|
Reference in New Issue
Block a user