Skip to content

Commit

Permalink
Hard init gf_users
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Jan 19, 2025
1 parent fac297b commit 398abf0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/update-root-usercount-shields-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,8 @@ jobs:
sed -n 's/.*"activeInstallCount":\([0-9]*\).*/\1/p')
echo "Edge users: $edge_users"
# Fetch Greasy Fork total user count
base_url="https://img.shields.io/greasyfork/dt/"
app_id="461473"
gf_users=$(curl -s "$base_url$app_id" |
sed -n 's/.*<title>installs: \([0-9.k]\+\)*<\/title>.*/\1/Ip')
gf_users=$(expand_num "$gf_users")
# Init Greasy Fork total user count
gf_users=10000
echo "Greasy Fork users: $gf_users"
# Sum user counts
Expand Down

0 comments on commit 398abf0

Please sign in to comment.