Add verify format

This commit is contained in:
Shiming Zhang
2021-12-24 15:38:27 +08:00
parent 27d0d13783
commit 070c31d28a
3 changed files with 25 additions and 1 deletions

17
.github/workflows/verify-fmt.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Verify Format
on:
pull_request:
branches: [main]
jobs:
Patch:
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; }