mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-08 23:54:25 +08:00
Add stats script for not sync image (#92)
This commit is contained in:
3
.github/workflows/check.yml
vendored
3
.github/workflows/check.yml
vendored
@@ -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 }}
|
||||||
|
3
.github/workflows/deep-check.yml
vendored
3
.github/workflows/deep-check.yml
vendored
@@ -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 }}
|
||||||
|
3
hack/stats-not-sync.sh
Executable file
3
hack/stats-not-sync.sh
Executable file
@@ -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
|
Reference in New Issue
Block a user