chore: check result before uploading (close #24)

This commit is contained in:
Yifan Gao 2022-11-09 00:05:23 +08:00
parent 64dca1a9f1
commit 9fe1d837ba
2 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,7 @@ jobs:
- run: ./dependency.sh - run: ./dependency.sh
- run: ./generate.sh - run: ./generate.sh
- run: ./stat.sh - run: ./stat.sh
- run: ./guard.sh
- name: Checkout ip-lists branch - name: Checkout ip-lists branch
uses: actions/checkout@v2 uses: actions/checkout@v2
if: github.event_name == 'schedule' && github.ref == 'refs/heads/master' if: github.event_name == 'schedule' && github.ref == 'refs/heads/master'

7
guard.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
[[ $(wc -l result/china.txt) < 3000 ]] && exit 1
[[ $(wc -l result/china6.txt) < 1000 ]] && exit 2
exit 0