Add stats script for not sync image (#92)
This commit is contained in:
parent
ec453caeaa
commit
37d67d44e9
|
@ -26,6 +26,9 @@ jobs:
|
||||||
https_proxy: socks5://127.0.0.1:8080
|
https_proxy: socks5://127.0.0.1:8080
|
||||||
run: |
|
run: |
|
||||||
./hack/diff.sh
|
./hack/diff.sh
|
||||||
|
- name: Stats the number of not sync images
|
||||||
|
run: |
|
||||||
|
./hack/stats-not-sync.sh sync.log
|
||||||
- name: Update badge
|
- name: Update badge
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -27,6 +27,9 @@ jobs:
|
||||||
https_proxy: socks5://127.0.0.1:8080
|
https_proxy: socks5://127.0.0.1:8080
|
||||||
run: |
|
run: |
|
||||||
./hack/diff.sh
|
./hack/diff.sh
|
||||||
|
- name: Stats the number of not sync images
|
||||||
|
run: |
|
||||||
|
./hack/stats-not-sync.sh sync.log
|
||||||
- name: Update badge
|
- name: Update badge
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cat $1 | grep NOT-SYNCHRONIZED | awk '{print $3}' | grep ':' | tr ':' ' ' | awk '{print $1}' | uniq -c | sort -nrk 1
|
Loading…
Reference in New Issue