mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-07 16:50:47 +08:00
Add verify format
This commit is contained in:
17
.github/workflows/verify-fmt.yml
vendored
Normal file
17
.github/workflows/verify-fmt.yml
vendored
Normal 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; }
|
Reference in New Issue
Block a user