Add check image exists

This commit is contained in:
Shiming Zhang
2022-01-18 16:36:33 +08:00
parent 6310c88ab8
commit 155ec1c1b5
2 changed files with 20 additions and 2 deletions

20
.github/workflows/verify-rp.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Verify PR
on:
pull_request:
branches: [main]
jobs:
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Verify domain.txt
run: |
./hack/verify-fmt.sh domain.txt || { echo "Please run './hack/fmt.sh domain.txt'"; exit 1; }
- 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