File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 22SCRIPT=$( realpath $0 )
33cd $( dirname ${SCRIPT} ) /..
44
5+ PACKAGES=" ../swift-package-builds/index/packages.json"
6+ INDEX=" ../swift-package-builds/index/android.json"
7+ STATS=" _data/android_stats.json"
8+
59cd ../swift-package-builds
610git pull
711cd -
812
9- INDEX=" ../swift-package-builds/index/android.json"
10- # STATS="../swift-package-builds/index/android_stats.json"
11- STATS=" _data/android_stats.json"
12-
1313cat ${INDEX} | jq ' to_entries | map(.value) | sort_by(.stars) | reverse' > _data/android.json
1414
1515echo " {}" > ${STATS}
1616
1717COUNT=$( cat ${INDEX} | jq ' length' )
1818jq --arg COUNT " $COUNT " ' ."total_packages" = $COUNT' $STATS > $STATS .new && mv $STATS .new $STATS
1919
20-
2120SUCCESS=$( cat ${INDEX} | jq ' [.[] | select(.status == "success")] | length' )
2221jq --arg SUCCESS " $SUCCESS " ' ."success_packages" = $SUCCESS' $STATS > $STATS .new && mv $STATS .new $STATS
2322
You can’t perform that action at this time.
0 commit comments